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 269813

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

Description mziernik 2017-02-13 16:45:39 UTC
Build: NetBeans IDE Dev (Build 201702110002)
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: ??

GUEST: I changed the content of the Javascript file I was working in

GUEST: I opened a Javascript file, which caused the exception to occur. After the file is opened, its content is not highlighted with different colors. All the text in the file is black, making it very difficult to read.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.count(JsSemanticAnalyzer.java:220)
   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)
   at org.netbeans.modules.csl.editor.semantic.SemanticHighlighter.process(SemanticHighlighter.java:303)
   at org.netbeans.modules.csl.editor.semantic.SemanticHighlighter.access$000(SemanticHighlighter.java:82)
Comment 1 mziernik 2017-02-13 16:45:41 UTC
Created attachment 163624 [details]
stacktrace