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 269786

Summary: NullPointerException at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.count
Product: javascript Reporter: mziernik
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: CaptainStarbuck, Reema
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 227992
Attachments: stacktrace

Description mziernik 2017-02-09 19:51:39 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.112-b15, Java(TM) SE Runtime Environment, 1.8.0_112-b15
OS: Windows 10

User Comments:
mziernik: ???




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.count(JsSemanticAnalyzer.java:238)
   at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.count(JsSemanticAnalyzer.java:299)
   at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.count(JsSemanticAnalyzer.java:175)
   at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.run(JsSemanticAnalyzer.java:135)
   at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.run(JsSemanticAnalyzer.java:93)
   at org.netbeans.modules.csl.editor.semantic.SemanticHighlighter.process(SemanticHighlighter.java:303)
Comment 1 mziernik 2017-02-09 19:51:41 UTC
Created attachment 163606 [details]
stacktrace
Comment 2 obsidian-studios 2018-01-19 19:17:06 UTC
Still exists

OpenIDE-Module: org.netbeans.modules.javascript2.editor/1
OpenIDE-Module-Specification-Version: 0.76
org-netbeans-modules-javascript2-editor.jar

Java 9.0.4 Oracle JDK
Netbeans 9.0-beta-rc1

java.lang.NullPointerException
	at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.count(JsSemanticAnalyzer.java:239)
	at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.count(JsSemanticAnalyzer.java:300)
	at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.count(JsSemanticAnalyzer.java:300)
	at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.run(JsSemanticAnalyzer.java:136)
	at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.run(JsSemanticAnalyzer.java:94)
[catch] at org.netbeans.modules.csl.editor.semantic.SemanticHighlighter.process(SemanticHighlighter.java:278)
Comment 3 obsidian-studios 2018-01-19 23:43:24 UTC
I think this only happens on first install. The module does not seem to require restart. I think it should and that should correct the issue. No code fix required.