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 64934 - [50cat] NullPointerException when changing Profiles
Summary: [50cat] NullPointerException when changing Profiles
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 5.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 21:10 UTC by dmocek
Modified: 2007-11-05 13:40 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 dmocek 2005-09-22 21:10:21 UTC
In the Options dialog, I clicked on the Duplicate... button with the NetBeans
profile selected.  I gave the new profile the name 'Darryl's'.  I then clicked
on the Profiles drop down list and selected 'City Lights'.  I clicked on the OK.
button.  I scrolled one of the files up a click or two.  I then went back to
Options and selected 'Darryl's' in the Profiles drop down.  I received a
NullPointerException.  Build 200509211800


java.lang.NullPointerException
	at java.util.ArrayList.<init>(ArrayList.java:132)
	at
org.netbeans.modules.options.colors.EditorPanel.getCategories(EditorPanel.java:427)
	at
org.netbeans.modules.options.colors.EditorPanel.setCurrentProfile(EditorPanel.java:253)
	at
org.netbeans.modules.options.colors.FontAndColorsPanel.setCurrentProfile(FontAndColorsPanel.java:136)
	at
org.netbeans.modules.options.colors.FontAndColorsPanel.access$200(FontAndColorsPanel.java:72)
	at
org.netbeans.modules.options.colors.FontAndColorsPanel$1.itemStateChanged(FontAndColorsPanel.java:99)
	at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1162)
	at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1210)
	at javax.swing.JComboBox.contentsChanged(JComboBox.java:1266)
	at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
	at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88)
	at javax.swing.JComboBox.setSelectedItem(JComboBox.java:551)
	at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:597)
	at
javax.swing.plaf.basic.BasicComboPopup$ListMouseHandler.mouseReleased(BasicComboPopup.java:749)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
	at java.awt.Component.processMouseEvent(Component.java:5100)
	at
javax.swing.plaf.basic.BasicComboPopup$2.processMouseEvent(BasicComboPopup.java:452)
	at java.awt.Component.processEvent(Component.java:4897)
	at java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Component.dispatchEventImpl(Component.java:3615)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at java.awt.Container.dispatchEventImpl(Container.java:1613)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 1 Jan Jancura 2005-10-07 14:36:44 UTC
I can not reproduce this bug. Looks like it was already fixed.
Comment 2 dmocek 2006-01-18 17:54:20 UTC
I no longer see this problem.