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 070712) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Description: ============ have J2se project with frame 1. insert jMenuBar 2. insert new jMenu under one of the jMenus in MenuBar 3. do "save delete" of this form -> NPE is thrown If user tries to delete this project completely another exception is thrown and It's not possible to insert any component from palette into any other forms as well ... IDE must be restarted to be able to continue working with form. StackTrace: =========== java.lang.NullPointerException at org.netbeans.modules.form.menu.MenuEditLayer.unconfigureFormListeners(MenuEditLayer.java:349) at org.netbeans.modules.form.menu.MenuEditLayer.hideMenuLayer(MenuEditLayer.java:268) at org.netbeans.modules.form.menu.MenuEditLayer$3.formChanged(MenuEditLayer.java:331)
Created attachment 45019 [details] 109525
I cannot reproduce this error. What does 'save delete' mean? Do you save the form and then delete it using the Projects view? In either case, I have modified the MenuEditLayer to not throw an NPE if the form has been deleted, so this should be fixed now.
I tested it on todays build Build 070713 and I cannot reproduce it ... seems to be OK now save delete means - do delete on form class and check check box "save delete" on delete dialog