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.
[main trunk] (first time occured in netbeans56 build) steps to reproduce: a) right click to some toolbar to invoke popup menu b) switch some toolbar on (e.g. 'Debug Full') c) do the same but switch the toolbar off then when you try to invoke popup menu again, following exception is thrown: Wed Nov 01 10:53:08 GMT+01:00 2000java.lang.NullPointerException: null java.lang.NullPointerException at org.netbeans.core.windows.toolbars.ToolbarConfiguration.getContextMenu (ToolbarConfiguration.java:548) at org.openide.awt.ToolbarPool$PopupListener.showPopup (ToolbarPool.java:358) at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased (MouseUtils.java:150) at java.awt.AWTEventMulticaster.mouseReleased (AWTEventMulticaster.java:231) at java.awt.Component.processMouseEvent(Component.java:3717) at java.awt.Component.processEvent(Component.java:3546) at java.awt.Container.processEvent(Container.java:1164) at java.awt.Component.dispatchEventImpl(Component.java:2595) at java.awt.Container.dispatchEventImpl(Container.java:1213) at java.awt.Component.dispatchEvent(Component.java:2499) at java.awt.LightweightDispatcher.retargetMouseEvent (Container.java:2451) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125) at java.awt.Container.dispatchEventImpl(Container.java:1200) at java.awt.Window.dispatchEventImpl(Window.java:912) at java.awt.Component.dispatchEvent(Component.java:2499) at java.awt.EventQueue.dispatchEvent(EventQueue.java:319) at java.awt.EventDispatchThread.pumpOneEvent (EventDispatchThread.java:103) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
there is also at least one empty toolbar on workspace - it indicates fortcoming NPE problems
I think this is fixed now, please try to reproduce in next build...
This is still broken (trunk Nov 6). I am upping the priority and severity since it looks rather bad when the toolbars do not work. I get the NPE immediately after clicking on the toolbar area, and two toolbars are empty.
*** Bug 8190 has been marked as a duplicate of this bug. ***
I tried your reproduction case in 3.1. release and I couldn't reproduce it (tried at least 10x). Can you test it against 3.1. release and tell me your results? Did it appear every time or unpredictably? Thanx.
After talk with Vlada Nemec, I concluded that this bug appears to be fixed both in release and in main trunk.
I agree with David Simonek - I am able to reproduce this bug only in [main trunk] builds from (nb56) to (nb62) (inclusive)
Resolved for 3.4.x or earlier, no new info since then -> closing.