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 - NullPointerException at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.count
Summary: NullPointerException at org.netbeans.modules.javascript2.editor.JsSemanticAna...
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-09 19:51 UTC by mziernik
Modified: 2018-01-19 23:43 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 227992


Attachments
stacktrace (2.92 KB, text/plain)
2017-02-09 19:51 UTC, mziernik
Details

Note You need to log in before you can comment on or make changes to this bug.
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.