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 221995 - NullPointerException at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter
Summary: NullPointerException at org.netbeans.modules.javascript2.editor.formatter.For...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-12 18:57 UTC by jperlman
Modified: 2012-11-14 02:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 193215


Attachments
stacktrace (6.33 KB, text/plain)
2012-11-12 18:57 UTC, jperlman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jperlman 2012-11-12 18:57:14 UTC
Build: NetBeans IDE 7.3 Beta (Build 201210011125)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Linux

User Comments:
GUEST: selected block of .ftl code (which i've mapped to html mime type) text and chose "format" from context menu.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:390)
   at com.oracle.nashorn.ir.FunctionNode.accept(FunctionNode.java:308)
   at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.handleBlockContent(FormatVisitor.java:865)
   at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:120)
   at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:323)
   at com.oracle.nashorn.ir.FunctionNode.accept(FunctionNode.java:308)
Comment 1 jperlman 2012-11-12 18:57:16 UTC
Created attachment 127662 [details]
stacktrace
Comment 2 Petr Hejl 2012-11-13 11:29:04 UTC
Should be fixed in web-main 46e7aee1b11d. Please verify in daily build.
Comment 3 Quality Engineering 2012-11-14 02:42:52 UTC
Integrated into 'main-golden', will be available in build *201211140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/46e7aee1b11d
User: Petr Hejl <phejl@netbeans.org>
Log: #221995 - NullPointerException at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter