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 258227 - NullPointerException at org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin$1.run
Summary: NullPointerException at org.netbeans.modules.refactoring.java.plugins.JavaWhe...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-03 12:53 UTC by Exceptions Reporter
Modified: 2016-08-11 01:55 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 222826


Attachments
stacktrace (2.60 KB, text/plain)
2016-03-03 12:53 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-03-03 12:53:40 UTC
This issue was reported manually by ralphbenjamin.
It already has 5 duplicates 


Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b17, Java(TM) SE Runtime Environment, 1.8.0_66-b17
OS: Windows 7

User Comments:
myshkin: find usages in package fails when used with a class from a maven dependency downloaded source jar.

mkleint: where used on current package performed on a read only source file from maven dependency.

GUEST: searching for references in JDK source

GUEST: Find Usages of converForward in ClientEditor

GUEST: Find usages of method on package. The class was from an imported dependency with sources.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin$1.run(JavaWhereUsedQueryPlugin.java:269)
   at org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin$1.run(JavaWhereUsedQueryPlugin.java:253)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:486)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:153)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:137)
Comment 1 Exceptions Reporter 2016-03-03 12:53:42 UTC
Created attachment 158730 [details]
stacktrace
Comment 2 Svata Dedic 2016-08-06 21:28:32 UTC
Fixed in jet-main#88e5205dddf7
Comment 3 Quality Engineering 2016-08-11 01:55:47 UTC
Integrated into 'main-silver', will be available in build *201608110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/88e5205dddf7
User: Svata Dedic <sdedic@netbeans.org>
Log: #258227, #260880: reviewed getElement, avoided NPEs.