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 183891 - NullPointerException at org.netbeans.modules.options.colors.SyntaxColoringPanel.getValue
Summary: NullPointerException at org.netbeans.modules.options.colors.SyntaxColoringPan...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-12 11:33 UTC by Exceptions Reporter
Modified: 2010-12-16 13:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 32101


Attachments
stacktrace (2.22 KB, text/plain)
2010-04-12 11:33 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2010-04-12 11:33:27 UTC
Build: NetBeans IDE 6.1 Beta (Build 200803050202)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows XP

User Comments:
GUEST: went to Tools-->Options, then tried to change the default Font.

GUEST: I wanted to change the font size. For this reason I went to Options (Fonts and Colors) and click over the "..." button related to font.

GUEST: Clocked Options->Fonts & Colors->Font->...

jamespb: Brought up Tools > Options > Fonts&Colors.  No fonts were displayed.  Hit the ... button next to Font: and got this error

mmirilovic: Font & Colors | (NetBeans) | Syntax | Empty category | push ... - try to select the Font

This is really annoying - user can't change/set the Font

BTW: previously selected category was Keymap

GUEST: windows 2003 x64, can not setup font!

GUEST: trying to change font size

jungi: -open Tools->Options->Fonts&Colors
-click on "..." button to browse font

=> NPE

jamespb: Tried to change the editor font

GUEST: Changing font size in Fonts&color view of Options

pcw: <...> button to get list of fonts.

sasbeb: Setting the font/color options (originally there was a blank font in the option)

GUEST: Only going Tools->Options->Fonts&Colors->"Font ..."

GUEST: about to select base font in "Fonts & Colors".

GUEST: I was trying to change the font.

mco: While trying to set font for all languages. Font name field is empty.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.options.colors.SyntaxColoringPanel.getValue(SyntaxColoringPanel.java:850)
   at org.netbeans.modules.options.colors.SyntaxColoringPanel.getFont(SyntaxColoringPanel.java:882)
   at org.netbeans.modules.options.colors.SyntaxColoringPanel.actionPerformed(SyntaxColoringPanel.java:365)
   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)
Comment 1 Exceptions Reporter 2010-04-12 11:33:31 UTC
Created attachment 97072 [details]
stacktrace
Comment 2 Yulia Novozhilova 2010-12-16 13:25:44 UTC
Already fixed: this http://hg.netbeans.org/main/rev/39a5a0fcefbc