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 247790 - NullPointerException at com.sun.tools.javac.model.JavacElements.getTypeElement
Summary: NullPointerException at com.sun.tools.javac.model.JavacElements.getTypeElement
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 249550 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-08 08:27 UTC by terje7601
Modified: 2015-06-02 03:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 212551


Attachments
stacktrace (2.22 KB, text/plain)
2014-10-08 08:27 UTC, terje7601
Details

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2014-10-08 08:27:24 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Windows 7

User Comments:
terje7601: Not sure when exactly it occured, but it seems related to JPA




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.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:0)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Comment 1 terje7601 2014-10-08 08:27:26 UTC
Created attachment 149779 [details]
stacktrace
Comment 2 Dusan Balek 2014-10-13 11:14:59 UTC
org.netbeans.modules.j2ee.jpa.verification.rules.entity.IdClassOverridesEqualsAndHashCode should not pass null value as an argument to Elements.getTypeElement(...). Reassigning.
Comment 3 Petr Hejl 2015-06-01 07:13:59 UTC
*** Bug 249550 has been marked as a duplicate of this bug. ***
Comment 4 Petr Hejl 2015-06-01 07:14:55 UTC
Fixed in web-main ea319c8387a7.
Comment 5 Quality Engineering 2015-06-02 03:01:46 UTC
Integrated into 'main-silver', will be available in build *201506020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ea319c8387a7
User: Petr Hejl <phejl@netbeans.org>
Log: #247790 - NullPointerException at com.sun.tools.javac.model.JavacElements.getTypeElement