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 129833

Summary: NullPointerException when clicking on "inherited" button in Font Customizer
Product: editor Reporter: _ gtzabari <gtzabari>
Component: OptionsAssignee: Max Sauer <msauer>
Status: RESOLVED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=34806
Issue Type: DEFECT Exception Reporter: 34806

Description _ gtzabari 2008-03-11 19:27:07 UTC
Build: NetBeans IDE 6.1 Beta (Build 200803050202)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Linux, 2.6.23.1-42.fc8, i386
User comments: 
STACKTRACE: (first 10 lines)
java.lang.NullPointerException
        at org.netbeans.modules.options.colors.SyntaxColoringPanel.actionPerformed(SyntaxColoringPanel.java:385)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.Component.processMouseEvent(Component.java:6041)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
        at java.awt.Component.processEvent(Component.java:5806)
        at java.awt.Container.processEvent(Container.java:2058)
Comment 1 Vitezslav Stejskal 2008-03-12 12:41:38 UTC
To reproduce make sure that 'All Languages', 'Default' is selected. The button should be disabled in this case or do
nothing as there is no other coloring to 'inherit' from in this case.
Comment 2 _ gtzabari 2008-03-12 13:40:34 UTC
I got this when clicking "inherit" on "comment". I wanted comments to inherit the font type from "default". It doesn't
make sense to disable the button in this case.
Comment 3 Vitezslav Stejskal 2008-03-12 16:53:57 UTC
Right, I was wrong. It should be fixed now. The button actually makes sense for the 'Default' coloring too, because it
then reverts the changes to 'system' default coloring.
http://hg.netbeans.org/main/rev/c67ef7479cef