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 109801 - MENU: creating menu in frame causes IDE crash
Summary: MENU: creating menu in frame causes IDE crash
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-16 13:42 UTC by Jana Maleckova
Modified: 2007-11-27 13:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (3.90 KB, image/png)
2007-07-16 13:43 UTC, Jana Maleckova
Details
109801 (2.46 KB, text/plain)
2007-07-16 13:44 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-16 13:42:02 UTC
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)
Comment 1 Jana Maleckova 2007-07-16 13:43:35 UTC
Created attachment 45129 [details]
screenshot
Comment 2 Jana Maleckova 2007-07-16 13:44:17 UTC
Created attachment 45130 [details]
109801
Comment 3 Joshua Marinacci 2007-07-20 05:42:56 UTC
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.
Comment 4 Jana Maleckova 2007-07-20 14:24:48 UTC
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)
Comment 5 Jana Maleckova 2007-11-27 13:56:12 UTC
tested on NetBeans IDE 6.0 (Build 200711261600)