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 070716) 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 simple j2se project with form class 1. insert menu bar in frame 2. insert jMenu under e.g. Edit menu 3. do mouse click on the right botton corner of this jMenu (see arrow in the screenshot) 4. click on Edit menu on design => exception is thrown then in every case when user tries to drag and drop any other menu component in frame .. many exceptions are thrown Ide must be restarted StrackTrace: ============ java.lang.NullPointerException at org.netbeans.modules.form.FormDesigner.getComponent(FormDesigner.java:408) at org.netbeans.modules.form.menu.DropTargetLayer.paintComponent(DropTargetLayer.java:174)
Created attachment 45129 [details] screenshot
Created attachment 45130 [details] 109801
I cannot directly reproduce this exception, however I have identified the code that is causing the NPE and fixed it. Please test that it is truly fixed now. Thanks.
verified on Product Version: NetBeans IDE Dev (Build 070720) 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)
tested on NetBeans IDE 6.0 (Build 200711261600)