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 - NullPointerException when clicking on "inherited" button in Font Customizer
Summary: NullPointerException when clicking on "inherited" button in Font Customizer
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Max Sauer
Depends on:
Reported: 2008-03-11 19:27 UTC by _ gtzabari
Modified: 2008-03-12 16:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 34806


Note You need to log in before you can comment on or make changes to this bug.
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.