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 - NullPointerException at com.sun.tools.javac.model.JavacElements.addMembers
Summary: NullPointerException at com.sun.tools.javac.model.JavacElements.addMembers
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-24 07:06 UTC by Vladimir Voskresensky
Modified: 2016-07-07 07:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 208630


Attachments
stacktrace (5.92 KB, text/plain)
2014-03-24 07:06 UTC, Vladimir Voskresensky
Details

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