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 155001 - NullPointerException at org.netbeans.modules.css.gsf.CSSFormatter.isOnlyWhiteSpaces
Summary: NullPointerException at org.netbeans.modules.css.gsf.CSSFormatter.isOnlyWhite...
Status: CLOSED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Konecny
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-09 09:58 UTC by Marian Mirilovic
Modified: 2010-04-22 10:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 36556


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2008-12-09 09:58:41 UTC
66 duplicates so far ...

Build: NetBeans IDE 6.1 Beta (Build 200803050202)
VM: Java HotSpot(TM) Client VM, 1.5.0_12-b04
OS: Windows XP, 5.1, x86
User comments: 
STACKTRACE: (first 10 lines)
java.lang.NullPointerException
        at org.netbeans.modules.css.gsf.CSSFormatter.isOnlyWhiteSpaces(CSSFormatter.java:321)
        at org.netbeans.modules.css.gsf.CSSFormatter.isWSToken(CSSFormatter.java:317)
        at org.netbeans.modules.css.gsf.CSSFormatter.findTokenSequenceBounds(CSSFormatter.java:284)
        at org.netbeans.modules.css.gsf.CSSFormatter.reindent(CSSFormatter.java:98)
        at org.netbeans.modules.gsf.GsfIndentTask.reindent(GsfIndentTask.java:69)
        at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:502)
        at org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:271)
        at org.netbeans.modules.editor.indent.IndentImpl.reindent(IndentImpl.java:232)
        at org.netbeans.modules.editor.indent.FormatterImpl.indentLine(FormatterImpl.java:138)
        at org.netbeans.modules.editor.indent.FormatterImpl.indentNewLine(FormatterImpl.java:133)
Comment 1 David Konecny 2009-02-08 22:44:33 UTC
This looks like it's been fixed in 6.5 release - all exceptions are from older builds. It is not obvious why token text
is null.
Comment 2 Marian Mirilovic 2010-04-22 10:34:23 UTC
v/c