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.
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)
Created attachment 122566 [details] stacktrace
probably belongs here
Please always provide a test case. Formatter issues are highly context sensitive and the code itself is changed every day.