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 110429 - Cancelling options dialog throws NPE from o.n.m.ruby.hints.options.HintsPanel
Summary: Cancelling options dialog throws NPE from o.n.m.ruby.hints.options.HintsPanel
Status: RESOLVED INVALID
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-20 14:51 UTC by Maksim Khramov
Modified: 2008-02-13 15:39 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 Maksim Khramov 2007-07-20 14:51:34 UTC
Steps to reproduce:
Open IDE Options dialog and click Cancel button. The NPE is thrown:
java.lang.NullPointerException
	at org.netbeans.modules.ruby.hints.options.HintsPanel.cancel(HintsPanel.java:227)
	at org.netbeans.modules.ruby.hints.options.HintsOptionsPanelController.cancel(HintsOptionsPanelController.java:46)
	at org.netbeans.modules.options.advanced.Model$DelegatingController.cancel(Model.java:186)
	at org.netbeans.modules.options.advanced.Model.cancel(Model.java:107)
	at org.netbeans.modules.options.advanced.AdvancedPanel.cancel(AdvancedPanel.java:60)
	at org.netbeans.modules.options.advanced.AdvancedPanelController.cancel(AdvancedPanelController.java:46)
	at org.netbeans.modules.options.CategoryModel$Category.cancel(CategoryModel.java:361)
	at org.netbeans.modules.options.CategoryModel$Category.access$1100(CategoryModel.java:282)
	at org.netbeans.modules.options.CategoryModel.cancel(CategoryModel.java:193)
	at org.netbeans.modules.options.OptionsPanel.cancel(OptionsPanel.java:169)
	at org.netbeans.modules.options.OptionsDisplayerImpl$OptionsPanelListener.actionPerformed(OptionsDisplayerImpl.java:177)
	at org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1062)
	at javax.swing.JComponent$ActionStandin.actionPerformed(JComponent.java:3361)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2844)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2890)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2807)
	at java.awt.Component.processEvent(Component.java:5815)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:693)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:958)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:830)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:657)
	at java.awt.Component.dispatchEventImpl(Component.java:4282)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Torbjorn Norbye 2007-07-20 15:51:12 UTC
This should have been fixed a few days ago.... which build are you using?
Comment 2 Maksim Khramov 2007-07-23 10:15:49 UTC
Was reproduced in 200707171200 build.
No more reproducible in 200707221200 build
Comment 3 Martin Krauskopf 2008-02-13 15:39:14 UTC
Getting rid of 'ui' category. Will use right subcomponent and UI keyword. 'code'
when none subcomponent fits.