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 271026 - NullPointerException at com.sun.tools.javac.model.JavacElements.cast
Summary: NullPointerException at com.sun.tools.javac.model.JavacElements.cast
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-03 21:52 UTC by javydreamercsw
Modified: 2017-08-11 08:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 229595


Attachments
stacktrace (7.62 KB, text/plain)
2017-07-03 21:52 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2017-07-03 21:52:52 UTC
This bug was originally marked as duplicate of bug 210036, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.2 (Build 201705191307)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.121-b13, Java(TM) SE Runtime Environment, 1.8.0_121-b13
OS: Windows 7

User Comments:
javydreamercsw: Working with entities from database.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.model.JavacElements.cast(JavacElements.java:665)
   at com.sun.tools.javac.model.JavacElements.getAllMembers(JavacElements.java:413)
   at com.sun.tools.javac.model.JavacElements.getAllMembers(JavacElements.java:65)
   at org.netbeans.modules.j2ee.persistence.wizard.EntityClosure$6.run(EntityClosure.java:361)
   at org.netbeans.modules.j2ee.persistence.wizard.EntityClosure$6.run(EntityClosure.java:351)
   at org.netbeans.modules.java.source.parsing.MimeTask.run(MimeTask.java:83)
Comment 1 javydreamercsw 2017-07-03 21:52:54 UTC
Created attachment 164682 [details]
stacktrace
Comment 2 Dusan Balek 2017-08-11 08:38:59 UTC
EntityClosure should not pass null as an argument to Elements.getAllMembers(...).