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>
Severity: blocker Keywords: SIMPLEFIX
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
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,, i386
User comments: 
STACKTRACE: (first 10 lines)
        at org.netbeans.modules.options.colors.SyntaxColoringPanel.actionPerformed(
        at javax.swing.AbstractButton.fireActionPerformed(
        at javax.swing.AbstractButton$Handler.actionPerformed(
        at javax.swing.DefaultButtonModel.fireActionPerformed(
        at javax.swing.DefaultButtonModel.setPressed(
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
        at java.awt.Component.processMouseEvent(
        at javax.swing.JComponent.processMouseEvent(
        at java.awt.Component.processEvent(
        at java.awt.Container.processEvent(
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.