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 28825 - Closing ComponentPalette results in Exception
Summary: Closing ComponentPalette results in Exception
Status: CLOSED DUPLICATE of bug 25622
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2002-11-18 10:30 UTC by cE10
Modified: 2008-12-23 12:53 UTC (History)
0 users

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 cE10 2002-11-18 10:30:11 UTC
*********** Exception occurred ************ at Mon Nov 18 11:21:42 
CET 2002
java.lang.NullPointerException
	at 
org.netbeans.core.actions.FrameResidenceAction$ResidenceTypeListener.menuSelected(FrameResidenceAction.java:120)
	at javax.swing.JMenu.fireMenuSelected(JMenu.java:1106)
	at 
javax.swing.JMenu$MenuChangeListener.stateChanged(JMenu.java:1199)
	at 
javax.swing.DefaultButtonModel.fireStateChanged(DefaultButtonModel.java:361)
	at 
javax.swing.DefaultButtonModel.setMnemonic(DefaultButtonModel.java:295)
	at 
javax.swing.AbstractButton.setMnemonic(AbstractButton.java:1367)
	at 
javax.swing.AbstractButton.setMnemonic(AbstractButton.java:1388)
	at org.openide.awt.Actions.setMenuText(Actions.java:203)
	at 
org.openide.awt.Actions$MenuBridge.updateState(Actions.java:528)
	at 
org.openide.awt.Actions$Bridge.addNotify(Actions.java:306)
	at 
org.openide.awt.Actions$Bridge$VisL.propertyChange(Actions.java:340)
	at 
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:264)
	at 
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:232)
	at 
javax.swing.JComponent.firePropertyChange(JComponent.java:3814)
	at javax.swing.JComponent.addNotify(JComponent.java:4284)
	at java.awt.Container.addNotify(Container.java:2045)
	at javax.swing.JComponent.addNotify(JComponent.java:4283)
	at java.awt.Container.addNotify(Container.java:2045)
	at javax.swing.JComponent.addNotify(JComponent.java:4283)
	at java.awt.Container.addImpl(Container.java:658)
	at javax.swing.JLayeredPane.addImpl(JLayeredPane.java:202)
	at java.awt.Container.add(Container.java:547)
	at 
javax.swing.PopupFactory$LightWeightPopup.show(PopupFactory.java:639)
	at javax.swing.JPopupMenu.getPopup(JPopupMenu.java:803)
	at javax.swing.JPopupMenu.setVisible(JPopupMenu.java:748)
	at javax.swing.JPopupMenu.show(JPopupMenu.java:912)
	at 
org.openide.awt.JMenuPlus.setPopupMenuVisible(JMenuPlus.java:58)
	at 
javax.swing.JPopupMenu.menuSelectionChanged(JPopupMenu.java:1250)
	at 
javax.swing.MenuSelectionManager.setSelectedPath(MenuSelectionManager.java:81)
	at 
javax.swing.plaf.basic.BasicMenuUI$MouseInputHandler.mouseEntered(BasicMenuUI.java:385)
	at 
java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:237)
	at 
java.awt.Component.processMouseEvent(Component.java:5102)
	at java.awt.Component.processEvent(Component.java:4890)
	at java.awt.Container.processEvent(Container.java:1566)
	at 
java.awt.Component.dispatchEventImpl(Component.java:3598)
	at 
java.awt.Container.dispatchEventImpl(Container.java:1623)
	at java.awt.Component.dispatchEvent(Component.java:3439)
	at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
	at 
java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:3290)
	at 
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3147)
	at 
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
	at 
java.awt.Container.dispatchEventImpl(Container.java:1609)
	at java.awt.Window.dispatchEventImpl(Window.java:1585)
	at java.awt.Component.dispatchEvent(Component.java:3439)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
[catch] at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
	at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
	at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
	at 
java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
Comment 1 Marian Mirilovic 2002-12-06 17:57:12 UTC
reassigne to Marek, new owner of ui subcomponents
Comment 2 mslama 2003-01-08 16:38:44 UTC
There is call of WindowUtil.getActiveMode(). It can return null when
no mode is selected but it is not handled here. It results in NPE.
Comment 3 mslama 2003-01-09 10:21:24 UTC
This was already fixed as issue #25622. Fix was integrated also for NB
3.4.1.

*** This issue has been marked as a duplicate of 25622 ***
Comment 4 Marian Mirilovic 2003-07-22 14:09:16 UTC
verified, closed - it's duplicate.