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 210036 - NullPointerException at com.sun.tools.javac.model.JavacElements.cast
Summary: NullPointerException at com.sun.tools.javac.model.JavacElements.cast
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-24 16:08 UTC by sunbiz
Modified: 2012-04-17 16:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 186236


Attachments
stacktrace (7.11 KB, text/plain)
2012-03-24 16:08 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2012-03-24 16:08:25 UTC
Build: NetBeans IDE Dev (Build 201203200400)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.model.JavacElements.cast(JavacElements.java:680)
   at com.sun.tools.javac.model.JavacElements.getAllMembers(JavacElements.java:436)
   at com.sun.tools.javac.model.JavacElements.getAllMembers(JavacElements.java:61)
   at org.netbeans.modules.j2ee.persistence.wizard.EntityClosure$6.run(EntityClosure.java:332)
   at org.netbeans.modules.j2ee.persistence.wizard.EntityClosure$6.run(EntityClosure.java:322)
   at org.netbeans.api.java.source.JavaSource$MimeTask.run(JavaSource.java:549)
Comment 1 sunbiz 2012-03-24 16:08:27 UTC
Created attachment 117197 [details]
stacktrace
Comment 2 Dusan Balek 2012-03-28 14:56:40 UTC
EntityClosure should not pass null as an argument to Elements.getAllMembers(...).
Comment 3 Sergey Petrov 2012-03-28 15:23:45 UTC
It shouln't be hard to add null check to Util.getEnabledItems for returned items, but it's better o know how null items may appear.
Is there any specific database schema/selection order?
Comment 4 Sergey Petrov 2012-04-17 16:28:43 UTC
just one report and no details so far,
may be reproducible on specific tables set but need to know.