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 216173 - NullPointerException at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit
Summary: NullPointerException at org.netbeans.modules.javascript2.editor.formatter.For...
Status: RESOLVED INCOMPLETE
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-07-31 09:13 UTC by Vladimir Riha
Modified: 2012-09-04 07:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191160


Attachments
stacktrace (7.32 KB, text/plain)
2012-07-31 09:13 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-07-31 09:13:08 UTC
Build: NetBeans IDE Dev (Build EaselCSS-403-on-20120730)
VM: Java HotSpot(TM) Client VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-ea-b20
OS: Linux

User Comments:
vriha: confirmed (enter) item from cc list in js file. The cc list was invoked by pressing twice Ctrl+Space




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit(FormatVisitor.java:451)
   at com.oracle.nashorn.ir.UnaryNode.accept(UnaryNode.java:122)
   at com.oracle.nashorn.ir.TernaryNode.accept(TernaryNode.java:80)
   at com.oracle.nashorn.ir.ReturnNode.accept(ReturnNode.java:98)
   at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.handleBlockContent(FormatVisitor.java:675)
   at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.handleStandardBlock(FormatVisitor.java:578)
Comment 1 Vladimir Riha 2012-07-31 09:13:11 UTC
Created attachment 122566 [details]
stacktrace
Comment 2 Vladimir Riha 2012-07-31 14:44:17 UTC
probably belongs here
Comment 3 Petr Hejl 2012-09-04 07:31:27 UTC
Please always provide a test case. Formatter issues are highly context sensitive and the code itself is changed every day.