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

Summary: NullPointerException at com.sun.tools.javac.model.JavacElements.cast
Product: javaee Reporter: javydreamercsw <javydreamercsw>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 229595
Attachments: stacktrace

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(...).