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.
Build: NetBeans IDE 7.0 (Build 201104080000) VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b02, Java(TM) SE Runtime Environment, 1.7.0-ea-b131 OS: Linux User Comments: hajdamcz: Editing Action via GUI (Default Editor) while missing @Action annotation in java file Stacktrace: java.lang.NullPointerException at javax.swing.SizeRequirements.calculateAlignedPositions(SizeRequirements.java:461) at javax.swing.BoxLayout.layoutContainer(BoxLayout.java:434) at java.awt.Container.layout(Container.java:1499) at java.awt.Container.doLayout(Container.java:1488) at java.awt.Container.validateTree(Container.java:1672) at java.awt.Container.validateTree(Container.java:1681)
Created attachment 108537 [details] stacktrace
This exception seems to be a consequence of some previous exception. I scanned the corresponding message.log and the initial exception seems to be: java.lang.NullPointerException at sun.swing.SwingUtilities2.getLeftSideBearing (SwingUtilities2.java:274) at sun.swing.MenuItemLayoutHelper.getLeftExtraWidth (MenuItemLayoutHelper.java:162) at sun.swing.MenuItemLayoutHelper.calcExtraWidths (MenuItemLayoutHelper.java:158) at sun.swing.MenuItemLayoutHelper.reset(MenuItemLayoutHelper.java:148) at sun.swing.MenuItemLayoutHelper.<init>(MenuItemLayoutHelper.java:107) at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredMenuItemSize (BasicMenuItemUI.java:412) at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredSize (BasicMenuItemUI.java:367) at javax.swing.JComponent.getPreferredSize(JComponent.java:1660) at javax.swing.BoxLayout.checkRequests(BoxLayout.java:483) at javax.swing.BoxLayout.layoutContainer(BoxLayout.java:424) at java.awt.Container.layout(Container.java:1499) at java.awt.Container.doLayout(Container.java:1488) at java.awt.Container.validateTree(Container.java:1672) ... Event this exception doesn't seem to be related to GUI Builder or NetBeans. It is probably a JDK bug. In fact, it was already reported against JDK under no. 7037283, but it was closed as non-reproducible. Hence, if you are able to reproduce this exception reliably then, please, provide the details to JDK team. Thank you in advance. The JDK issue: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7037283 I am closing this issue as INVALID because it seems to be outside NetBeans code.
Correct resolution is WONTFIX