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 112854 - MENU: NPE when File menu is moved in view class
Summary: MENU: NPE when File menu is moved in view class
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Joshua Marinacci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-15 09:59 UTC by Jana Maleckova
Modified: 2007-08-17 08:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
112854 (2.08 KB, text/plain)
2007-08-15 10:02 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-08-15 09:59:46 UTC
Product Version: NetBeans IDE Dev (Build 070815) 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 JDA application
1. in view class move File menu together with exit action under Help menu
2. move File menu again in menu bar, exactly next to help menu = > NPE is thrown

StackTrace:
===========
java.lang.NullPointerException
        at org.netbeans.modules.form.FormDesigner.getComponent(FormDesigner.java:410)
        at org.netbeans.modules.form.menu.MenuEditLayer.isAncestor(MenuEditLayer.java:590)
        at org.netbeans.modules.form.menu.MenuEditLayer.moveRadComponentInto(MenuEditLayer.java:870)
        at org.netbeans.modules.form.menu.DragOperation.completeInterMenuDrag(DragOperation.java:343)
Comment 1 Jana Maleckova 2007-08-15 10:02:08 UTC
Created attachment 46655 [details]
112854
Comment 2 Joshua Marinacci 2007-08-15 19:10:20 UTC
This is fixed now. I just committed a change fixes NPE when dragging toplevel menus.
Comment 3 Jana Maleckova 2007-08-17 08:49:57 UTC
verified on

Product Version: NetBeans IDE Dev (Build 070817) 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)