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 258895

Summary: NullPointerException at org.netbeans.modules.javascript2.model.ModelVisitor.setModifiers
Product: javascript Reporter: dusty <dusty>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal CC: dusty
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 223600
Attachments: stacktrace

Description dusty 2016-04-18 21:48:14 UTC
Build: NetBeans IDE Dev (Build javascript2-frameworks-1860-on-20160414)
VM: OpenJDK 64-Bit Server VM, 25.66-b17, OpenJDK Runtime Environment, 1.8.0_66-internal-b17
OS: Linux

User Comments:
Dusty: Regained focus




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javascript2.model.ModelVisitor.setModifiers(ModelVisitor.java:1484)
   at org.netbeans.modules.javascript2.model.ModelVisitor.enterFunctionNode(ModelVisitor.java:789)
   at com.oracle.js.parser.ir.FunctionNode.accept(FunctionNode.java:319)
   at com.oracle.js.parser.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:60)
   at com.oracle.js.parser.ir.LexicalContextExpression.accept(LexicalContextExpression.java:47)
   at com.oracle.js.parser.ir.BinaryNode.accept(BinaryNode.java:170)
Comment 1 dusty 2016-04-18 21:48:15 UTC
Created attachment 159308 [details]
stacktrace
Comment 2 Petr Pisl 2016-04-19 06:45:29 UTC
Do you have reproducible case? I mean, whether you get this npe during editing a file or during indexing?
Comment 3 dusty 2016-04-19 06:48:11 UTC
I'm sorry I don't: suddendly the IDE started to generate tons of these errors after getting focus and I had to quit it because it became unusable.
Comment 4 Petr Pisl 2016-04-19 07:22:19 UTC
After restarting the ide, it was ok? Or the errors are here still?
Comment 5 dusty 2016-04-19 07:31:15 UTC
After the restart I continue to have problems: http://statistics.netbeans.org/analytics/exception.do?id=816518

I'll wipe the user dir to restart with a clean situation
Comment 6 dusty 2016-04-19 09:35:37 UTC
It did not solve the problem: opening a simple project gives exeption

http://statistics.netbeans.org/analytics/exception.do?id=816538
Comment 7 dusty 2016-04-19 09:35:58 UTC
But maybe I'm using an old build, please advise if there is a more recent one to test
Comment 8 Petr Pisl 2016-06-21 13:31:03 UTC
This is fixed in web-main.