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 220067 - NullPointerException at org.netbeans.modules.javascript2.editor.formatter.FormatTokenStream.getCoveringToken
Summary: NullPointerException at org.netbeans.modules.javascript2.editor.formatter.For...
Status: RESOLVED DUPLICATE of bug 218651
Alias: None
Product: javascript
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-14 13:20 UTC by Exceptions Reporter
Modified: 2012-10-15 14:44 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 193523


Attachments
stacktrace (2.62 KB, text/plain)
2012-10-14 13:20 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-10-14 13:20:47 UTC
This bug was originally marked as duplicate of bug 218651, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.3 Beta (Build 201210011125)
VM: OpenJDK 64-Bit Server VM, 20.0-b12, OpenJDK Runtime Environment, 1.6.0_24-b24
OS: Linux

User Comments:
rozwell: autoformatting html file with some issues

mago_ebon: I was formatting a segment of a html page with <Shift>+<Alt>+F. First I had a javascript error and thougth it was the reason, but then fixed the error and saved the file and it kept on happening.

sunbiz: formatting a JSP page which has JavaScript in it added with the <!-- style notation for IE etc //-->

GUEST: Pulse format option

bingalls: formatting js at the bottom of html




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javascript2.editor.formatter.FormatTokenStream.getCoveringToken(FormatTokenStream.java:250)
   at org.netbeans.modules.javascript2.editor.formatter.FormatContext.getEmbeddingIndent(FormatContext.java:278)
   at org.netbeans.modules.javascript2.editor.formatter.JsFormatter$1.run(JsFormatter.java:224)
   at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:317)
   at org.netbeans.modules.javascript2.editor.formatter.JsFormatter.reformat(JsFormatter.java:118)
   at org.netbeans.modules.csl.core.GsfReformatTask$1.run(GsfReformatTask.java:105)
Comment 1 Exceptions Reporter 2012-10-14 13:20:52 UTC
Created attachment 125936 [details]
stacktrace
Comment 2 Petr Hejl 2012-10-15 09:23:44 UTC

*** This bug has been marked as a duplicate of bug 218651 ***