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 - NullPointerException at com.sun.source.util.TreePath.getPath
Summary: NullPointerException at com.sun.source.util.TreePath.getPath
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-26 15:37 UTC by gilmry
Modified: 2016-07-07 08:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206973


Attachments
stacktrace (3.16 KB, text/plain)
2014-01-26 15:37 UTC, gilmry
Details

Note You need to log in before you can comment on or make changes to this bug.
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