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 97418 - 'Fonts and Colors' dialog displays' Loading settings...' and does nothing else
Summary: 'Fonts and Colors' dialog displays' Loading settings...' and does nothing else
Status: CLOSED DUPLICATE of bug 82037
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL: http://www.netbeans.org/servlets/Brow...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-07 20:38 UTC by Karthikeyan Rajeswaran
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karthikeyan Rajeswaran 2007-03-07 20:38:59 UTC
To reproduce the problem:
- Opening "Tools | Options | Advanced Options" dialog
- Expand "Options | Editing | Annotation Types | Parser Annotation (Error)." 
- Check if 'Use Wave underline' checkbox and set 'wave underline color' to null.
- Close the dialog and open options window again.
- Switch to 'Fonts and Colors'. The panel displays 'loading settings...'.
It seems like the dialog is hanging but the dialog can be closed.

The following exception is thrown in the log file:
java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:396)
        at
javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:176)
        at
org.netbeans.modules.options.colors.ColorModel.getAnnotations(ColorModel.java:160)
        at
org.netbeans.modules.options.colors.AnnotationsPanel.getAnnotations(AnnotationsPanel.java:290)
        at
org.netbeans.modules.options.colors.AnnotationsPanel.update(AnnotationsPanel.java:170)
        at
org.netbeans.modules.options.colors.FontAndColorsPanel.update(FontAndColorsPanel.java:170)
        at
org.netbeans.modules.options.colors.FontAndColorsPanelController.update(FontAndColorsPanelController.java:40)
[catch] at org.netbeans.modules.options.OptionsPanel$1.run(OptionsPanel.java:326)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)

Perhaps null value should not be allowed for wave-underline-color if
use-wave-underline color is checked.
More importantly perhaps, the fonts-and-colors dialog should ignore this and
other such exceptions and proceed to display the dialog.

This issue is discussed in the forum at:
http://www.netbeans.org/servlets/BrowseList?list=nbusers&by=thread&from=781382
Comment 1 Vitezslav Stejskal 2007-03-07 22:30:00 UTC

*** This issue has been marked as a duplicate of 82037 ***
Comment 2 Karthikeyan Rajeswaran 2007-03-08 22:29:19 UTC
Verified that this is a duplicate issue,.