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 270365 - NullPointerException at org.netbeans.api.java.source.ElementHandle.resolve
Summary: NullPointerException at org.netbeans.api.java.source.ElementHandle.resolve
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-11 16:13 UTC by Alexandr Scherbatiy
Modified: 2018-03-26 21:32 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 228692


Attachments
stacktrace (2.97 KB, text/plain)
2017-04-11 16:13 UTC, Alexandr Scherbatiy
Details
stacktrace (2.97 KB, text/plain)
2017-04-11 16:19 UTC, Alexandr Scherbatiy
Details
stacktrace (2.97 KB, text/plain)
2017-05-04 17:01 UTC, Jesse Glick
Details
stacktrace (2.98 KB, text/plain)
2017-05-13 10:28 UTC, Maksim Khramov
Details
stacktrace (2.98 KB, text/plain)
2017-06-08 22:16 UTC, Jiri Prox
Details
stacktrace (2.97 KB, text/plain)
2017-06-13 12:07 UTC, Alexander Simon
Details
stacktrace (2.97 KB, text/plain)
2017-11-22 15:50 UTC, Alexander Simon
Details
stacktrace (2.96 KB, text/plain)
2018-03-26 21:32 UTC, michbarsinai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2017-04-11 16:13:28 UTC
Build: NetBeans IDE Dev (Build 201704110002)
VM: Java HotSpot(TM) Client VM, 25.131-b04, Java(TM) SE Runtime Environment, 1.8.0_131-ea-b04
OS: Windows 8.1

User Comments:
sunflower: Exception

sunflower: Call find usages

GUEST: Editing, trying to find usages




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.ElementHandle.resolve(ElementHandle.java:141)
   at org.netbeans.api.java.source.TreePathHandle$TreeDelegate.resolveElement(TreePathHandle.java:555)
   at org.netbeans.api.java.source.TreePathHandle.resolveElement(TreePathHandle.java:187)
   at org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin$FindTask.run(JavaWhereUsedQueryPlugin.java:599)
   at org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin$FindTask.run(JavaWhereUsedQueryPlugin.java:573)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:523)
Comment 1 Alexandr Scherbatiy 2017-04-11 16:13:30 UTC
Created attachment 164081 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2017-04-11 16:19:11 UTC
Created attachment 164083 [details]
stacktrace

Call Find Usages
Comment 3 Exceptions Reporter 2017-04-25 11:46:13 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228692
Comment 4 Jesse Glick 2017-05-04 17:01:15 UTC
Created attachment 164251 [details]
stacktrace

Trying to find all subtypes of a class defined in a binary dependency (with *-sources.jar).
Comment 5 Maksim Khramov 2017-05-13 10:28:18 UTC
Created attachment 164311 [details]
stacktrace

Opened Class file from jar pack (No source code available). Invoke find Usages on some filed from this class
Comment 6 Jiri Prox 2017-06-08 22:16:08 UTC
Created attachment 164493 [details]
stacktrace

NPE when finding usages
Comment 7 Alexander Simon 2017-06-13 12:07:17 UTC
Created attachment 164521 [details]
stacktrace

Call FU
Comment 8 Alexander Simon 2017-11-22 15:50:21 UTC
Created attachment 165487 [details]
stacktrace

find usages of library class
Comment 9 michbarsinai 2018-03-26 21:32:46 UTC
Created attachment 165690 [details]
stacktrace

Performed "lookup usages" on an interface method declaration.