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 109456 - NPE in CodeFoldingSideBar.getDefaultColoringFont()
Summary: NPE in CodeFoldingSideBar.getDefaultColoringFont()
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-07-12 01:39 UTC by matthies
Modified: 2007-11-05 13:39 UTC (History)
1 user (show)

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 matthies 2007-07-12 01:39:37 UTC
Build 200707111200, while navigating with keyboard in Files, very shortly after starting IDE, no editor window open:

java.lang.NullPointerException
	at org.netbeans.editor.CodeFoldingSideBar.getDefaultColoringFont(CodeFoldingSideBar.java:154)
	at org.netbeans.editor.CodeFoldingSideBar.settingsChange(CodeFoldingSideBar.java:244)
	at org.netbeans.editor.Settings.fireSettingsChange(Settings.java:624)
	at org.netbeans.editor.Settings.access$100(Settings.java:99)
	at org.netbeans.editor.Settings$1.run(Settings.java:170)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)

Not reproducible, but you might want to check the code.
Comment 1 Vitezslav Stejskal 2007-07-13 11:48:23 UTC
Will do, thanks.
Comment 2 Nathan Fiedler 2007-07-24 21:40:10 UTC
I've seen this several times today, while cursoring around in the editor. I have turned off the code folding in the
options, but it never seems to actually disable the folding. I'm using Hudson build from this morning, and I see the
same stack trace.
Comment 3 Vitezslav Stejskal 2007-07-25 14:32:24 UTC
Not sure what the reason was, but it should not throw NPEs anymore.

Checking in CodeFoldingSideBar.java;
/cvs/editor/libsrc/org/netbeans/editor/CodeFoldingSideBar.java,v  <--  CodeFoldingSideBar.java
new revision: 1.32; previous revision: 1.31
done