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 8120 - Null Pointer Exception when switching on/off some toolbars
Summary: Null Pointer Exception when switching on/off some toolbars
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Other Other
: P2 major (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-01 10:01 UTC by vnemec
Modified: 2008-12-22 18:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vnemec 2000-11-01 10:01:10 UTC
[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)
Comment 1 vnemec 2000-11-01 10:54:59 UTC
there is also at least one empty toolbar on workspace - it indicates fortcoming
NPE problems
Comment 2 Jesse Glick 2000-11-02 22:03:59 UTC
I think this is fixed now, please try to reproduce in next build...
Comment 3 Jesse Glick 2000-11-06 11:39:59 UTC
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.
Comment 4 Jesse Glick 2000-11-06 16:32:59 UTC
*** Bug 8190 has been marked as a duplicate of this bug. ***
Comment 5 David Simonek 2000-11-27 16:42:59 UTC
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.
Comment 6 David Simonek 2000-11-28 14:13:59 UTC
After talk with Vlada Nemec, I concluded that this bug appears to be fixed both
in release and in main trunk.
Comment 7 vnemec 2000-11-28 14:20:59 UTC
I agree with David Simonek - I am able to reproduce this bug only in [main
trunk] builds from (nb56) to (nb62) (inclusive)
Comment 8 Quality Engineering 2003-07-01 16:19:20 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.