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.
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)
Created attachment 164682 [details] stacktrace
EntityClosure should not pass null as an argument to Elements.getAllMembers(...).