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 108364 - Menu: Continuous NPE blocks designing form
Summary: Menu: Continuous NPE blocks designing form
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Joshua Marinacci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-28 09:36 UTC by Jiri Prox
Modified: 2007-11-28 08:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full stacktrace (1.63 KB, text/plain)
2007-06-28 09:38 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2007-06-28 09:36:51 UTC
Product Version: NetBeans IDE Dev (Build 200706272319) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System:
Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb) Userdir: /space/u3

NPE occurs when adding menu item to the menu. From that moment the same NPE is thrown when trying to add any component
to the form, which block designing. 

Steps to reproduce (must be followed exactly):
1) create new JFrame
2) add JMenuBar
3) click on Menu Item in palette -> the component is selected(reproducible with all kinds of menu items)
4) hover over "File" in menu bar of the designed form

-> java.lang.NullPointerException
	at org.netbeans.modules.form.menu.MenuEditLayer.configureMenu(MenuEditLayer.java:439)
	at org.netbeans.modules.form.menu.MenuEditLayer.openMenu(MenuEditLayer.java:257)
	at org.netbeans.modules.form.menu.DragOperation.move(DragOperation.java:205)

5) from this moment the NPE is thown whenever adding component to form
6) sometimes, when trying to recover from the error, the NPE starts to occur continuously
Comment 1 Jiri Prox 2007-06-28 09:38:02 UTC
Created attachment 44504 [details]
full stacktrace
Comment 2 Joshua Marinacci 2007-06-28 21:07:35 UTC
This is fixed now. The popup factory will be properly initialized on demand, now.
Comment 3 Jiri Prox 2007-07-02 11:55:04 UTC
verified
Comment 4 Jana Maleckova 2007-11-28 08:51:41 UTC
tested on NetBeans IDE 6.0 (Build 200711261600)