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 249550

Summary: NullPointerException at com.sun.tools.javac.model.JavacElements.getTypeElement
Product: javaee Reporter: jdstroy <jdstroy>
Component: PersistenceAssignee: Petr Hejl <phejl>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 214496
Attachments: stacktrace

Description jdstroy 2014-12-29 08:39:09 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b18
OS: Windows Server 2008 R2

User Comments:
jdstroy: Compile source code




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:108)
   at com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:61)
   at org.netbeans.modules.j2ee.jpa.verification.rules.entity.IdClassOverridesEqualsAndHashCode.apply(IdClassOverridesEqualsAndHashCode.java:124)
   at sun.reflect.GeneratedMethodAccessor191.invoke(GeneratedMethodAccessor191.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:483)
Comment 1 jdstroy 2014-12-29 08:39:11 UTC
Created attachment 151303 [details]
stacktrace
Comment 2 Dusan Balek 2015-01-02 09:51:24 UTC
'null' value should not be passed as an argument to Elements.getTypeElement(...). Reassigning.
Comment 3 Petr Hejl 2015-06-01 07:13:59 UTC

*** This bug has been marked as a duplicate of bug 247790 ***