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 257330

Summary: NullPointerException at com.sun.tools.javac.comp.Resolve.findVar
Product: java Reporter: misterm <misterm>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal CC: alexvsimon, ehsavoie, mmetelka, muellermi
Priority: P2    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 221885
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description misterm 2015-12-29 14:35:15 UTC
Build: NetBeans IDE Dev (Build 20151221-696aae8db0de)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b17, Java(TM) SE Runtime Environment, 1.8.0_66-b17
OS: Windows 8.1

User Comments:
misterm: .




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Resolve.findVar(Resolve.java:1393)
   at com.sun.tools.javac.comp.Resolve.findIdent(Resolve.java:2119)
   at com.sun.tools.javac.comp.Resolve.resolveIdent(Resolve.java:2352)
   at com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:3493)
   at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2194)
   at com.sun.tools.javac.comp.Attr$ResultInfo.attr(Attr.java:494)
Comment 1 misterm 2015-12-29 14:35:17 UTC
Created attachment 157945 [details]
stacktrace
Comment 2 Miloslav Metelka 2016-02-01 11:09:44 UTC
Created attachment 158329 [details]
stacktrace

Editing a new code in editor.lib2. The indexing throws exceptions even when scanning various modules not edited by me so this is imho not related to sources being broken by editing.
Comment 3 Miloslav Metelka 2016-02-01 11:20:26 UTC
Raising to P2 since once the IDE scans the sources and the exceptions rise one by one there's so many of them that it's impossible to work reasonably.
Comment 4 ehsavoie 2016-02-10 08:46:48 UTC
Created attachment 158445 [details]
stacktrace

Navigating in the code
Comment 5 Alexander Simon 2016-02-20 13:40:50 UTC
Created attachment 158582 [details]
stacktrace

e
Comment 6 Alexander Simon 2016-03-01 14:11:23 UTC
Created attachment 158692 [details]
stacktrace

update pr
Comment 7 Exceptions Reporter 2016-03-07 16:29:22 UTC
Created attachment 158773 [details]
stacktrace

.
Comment 8 muellermi 2016-03-19 19:59:27 UTC
Created attachment 158927 [details]
stacktrace

cut and pasted code
Comment 9 Dusan Balek 2016-03-29 09:40:05 UTC
Should be fixed together with #256995