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 243197

Summary: NullPointerException at com.sun.tools.javac.model.JavacElements.addMembers
Product: java Reporter: Vladimir Voskresensky <vv159170>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 208630
Attachments: stacktrace

Description Vladimir Voskresensky 2014-03-24 07:06:56 UTC
Build: NetBeans IDE Dev (Build 20140324-acb271f34cdb)
VM: Java HotSpot(TM) Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: SunOS

User Comments:
vv159170: open java file




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.model.JavacElements.addMembers(JavacElements.java:411)
   at com.sun.tools.javac.model.JavacElements.getAllMembers(JavacElements.java:405)
   at com.sun.tools.javac.model.JavacElements.getAllMembers(JavacElements.java:61)
   at org.netbeans.modules.java.hints.HideField.getAllMembers(HideField.java:191)
   at org.netbeans.modules.java.hints.HideFieldByVar.computeFixes(HideFieldByVar.java:92)
   at org.netbeans.modules.java.hints.HideField.run(HideField.java:139)
Comment 1 Vladimir Voskresensky 2014-03-24 07:06:58 UTC
Created attachment 146260 [details]
stacktrace
Comment 2 Dusan Balek 2014-03-28 10:31:48 UTC
Are you able to reproduce the problem on your source? If so, could you please share a reproducible test case? Thanks.
Comment 3 Vladimir Voskresensky 2014-03-28 16:54:26 UTC
All I remember was:
- it was very broken copy pasted class which was originally C++ class and I modified file to make it correct from Java point of view.
Comment 4 Martin Balin 2016-07-07 07:18:52 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss