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 240978

Summary: NullPointerException at com.sun.source.util.TreePath.getPath
Product: javaee Reporter: gilmry
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED WONTFIX    
Severity: normal CC: begbarros
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 206973
Attachments: stacktrace

Description gilmry 2014-01-26 15:37:22 UTC
This bug was originally marked as duplicate of bug 196938, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.4 (Build 201310111528)
VM: OpenJDK Client VM, 23.7-b01, OpenJDK Runtime Environment, 1.7.0_25-b30
OS: Linux

User Comments:
gilmry: az	az	az	az	az	az	az	az	az	az	az	az	az




Stacktrace: 
java.lang.NullPointerException
   at com.sun.source.util.TreePath.getPath(TreePath.java:55)
   at com.sun.source.util.TreePath.getPath(TreePath.java:46)
   at com.sun.tools.javac.api.JavacTrees.getPath(JavacTrees.java:317)
   at org.netbeans.modules.j2ee.core.api.support.java.SourceUtils.classTree2TypeElement(SourceUtils.java:164)
   at org.netbeans.modules.j2ee.core.api.support.java.GenerationUtils.ensureNoArgConstructor(GenerationUtils.java:359)
   at org.netbeans.modules.j2ee.persistence.wizard.entity.EntityWizard$1.run(EntityWizard.java:306)
Comment 1 gilmry 2014-01-26 15:37:24 UTC
Created attachment 144380 [details]
stacktrace
Comment 2 Dusan Balek 2014-08-25 17:12:40 UTC
org.netbeans.modules.j2ee.core.api.support.java.SourceUtils should not pass 'null' value as an argument to Trees.getPath(...). Reassigning.
Comment 3 Martin Fousek 2014-08-26 05:32:52 UTC
Persistence -> reassigning.
Comment 4 Martin Balin 2016-07-07 08:54:24 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss