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.

Bug 109525 - MENU: When from class with menu is deleted then many exceptions are thrown
Summary: MENU: When from class with menu is deleted then many exceptions are thrown
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Joshua Marinacci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-12 16:11 UTC by Jana Maleckova
Modified: 2007-07-13 08:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
109525 (5.76 KB, text/plain)
2007-07-12 16:12 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-07-12 16:11:19 UTC
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)
Comment 1 Jana Maleckova 2007-07-12 16:12:08 UTC
Created attachment 45019 [details]
109525
Comment 2 Joshua Marinacci 2007-07-12 21:28:37 UTC
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.
Comment 3 Jana Maleckova 2007-07-13 08:49:22 UTC
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