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.
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)
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.
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.
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