This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE Dev (Build 200706200326) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Userdir: D:\userdir60 Description: ============ have frame with jmenu bar. 1. insert next jmenu in menu bar -> menu bar contains 3 menus 2. move the second menu under e.g. the third one See, menu is duplicated in inspector and in source code as well jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenu2 = new javax.swing.JMenu(); jMenu3 = new javax.swing.JMenu(); jMenu2 = new javax.swing.JMenu(); when the last moved menu is deleted from inspector, it causes compilation errors and exception is thrown when user switches from design to source. StackTrace: =========== java.lang.NullPointerException at org.netbeans.modules.form.JavaCodeGenerator.generateComponentCreate(JavaCodeGenerator.java:1192) at org.netbeans.modules.form.JavaCodeGenerator.addCreateCode(JavaCodeGenerator.java:1000) at org.netbeans.modules.form.JavaCodeGenerator.addCreateCode(JavaCodeGenerator.java:1005) at org.netbeans.modules.form.JavaCodeGenerator.addCreateCode(JavaCodeGenerator.java:1005)
Created attachment 44025 [details] 107375
This is fixed now.
verified on Product Version: NetBeans IDE 6.0 Milestone 10 (build 200706242201) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)