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 215416 - 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.2
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-11 14:59 UTC by KhArtNJava
Modified: 2012-09-04 07:25 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 190645


Attachments
stacktrace (7.38 KB, text/plain)
2012-07-11 14:59 UTC, KhArtNJava
Details
snapshot (33.79 KB, application/octet-stream)
2012-07-11 15:01 UTC, KhArtNJava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description KhArtNJava 2012-07-11 14:59:39 UTC
This issue was reported manually by KhArtNJava.
It already has 2 duplicates 


Build: NetBeans IDE Dev (Build 201207110002)
VM: Java HotSpot(TM) Client VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit(FormatVisitor.java:430)
   at com.oracle.nashorn.ir.UnaryNode.accept(UnaryNode.java:122)
   at com.oracle.nashorn.ir.BinaryNode.accept(BinaryNode.java:122)
   at com.oracle.nashorn.ir.BinaryNode.accept(BinaryNode.java:122)
   at com.oracle.nashorn.ir.BinaryNode.accept(BinaryNode.java:122)
   at com.oracle.nashorn.ir.ReturnNode.accept(ReturnNode.java:98)
Comment 1 KhArtNJava 2012-07-11 14:59:41 UTC
Created attachment 121936 [details]
stacktrace
Comment 2 KhArtNJava 2012-07-11 15:01:36 UTC
Created attachment 121937 [details]
snapshot

if ($(lastChangeCheck).attr("class")=='vld-req') {

remove attr

will be
if ($(lastChangeCheck).attr("class")=='vld-req') {

point cursor after . and type has, press control + space, select hasClass, press enter
Comment 3 Petr Hejl 2012-07-26 08:52:25 UTC
Can you attach your file? This does not happen in my configuration.