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 236039 - NullPointerException at com.sun.source.util.DocTreePath.<init>
Summary: NullPointerException at com.sun.source.util.DocTreePath.<init>
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-16 17:36 UTC by rweaver
Modified: 2015-02-28 09:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 203914


Attachments
stacktrace (3.09 KB, text/plain)
2013-09-16 17:36 UTC, rweaver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rweaver 2013-09-16 17:36:18 UTC
Build: NetBeans IDE 7.4 Beta (Build 201307092200)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b17
OS: Windows 7

User Comments:
rweaver: Updating JavaDoc on large code base - about a third the way through the update got this error.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.source.util.DocTreePath.<init>(DocTreePath.java:93)
   at org.netbeans.api.java.source.TreeUtilities.pathFor(TreeUtilities.java:386)
   at org.netbeans.api.java.source.DocTreePathHandle$DocTreeDelegate.resolvePathForPos(DocTreePathHandle.java:326)
   at org.netbeans.api.java.source.DocTreePathHandle$DocTreeDelegate.resolve(DocTreePathHandle.java:317)
   at org.netbeans.api.java.source.DocTreePathHandle.resolve(DocTreePathHandle.java:135)
   at org.netbeans.modules.javadoc.hints.RemoveTagFix.performRewrite(RemoveTagFix.java:86)
Comment 1 rweaver 2013-09-16 17:36:20 UTC
Created attachment 140143 [details]
stacktrace
Comment 2 Svata Dedic 2015-02-10 08:42:00 UTC
I could not reproduce, but found a possible bug when DocTreePathHandle points to an element which has no longer a doc comment.

Fixed in jet-main#410d6ade7265
Comment 3 Quality Engineering 2015-02-28 09:02:19 UTC
Integrated into 'main-silver', will be available in build *201502280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/410d6ade7265
User: Svata Dedic <sdedic@netbeans.org>
Log: #236039: stop search if doc comment is missing