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 234613 - NullPointerException: #145291: Cannot resolve handle: TreePathHandle[delegate:TreeDelegate[kind:METHOD, enclosingElement:ElementHandle[kind=METHOD; sigs=nl.brandtech.pricetool.app.common.RoundingPrope
Summary: NullPointerException: #145291: Cannot resolve handle: TreePathHandle[delegate...
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords: 8.0_WAIVER_APPROVED
Depends on:
Blocks:
 
Reported: 2013-08-19 19:40 UTC by everflux
Modified: 2014-07-18 11:39 UTC (History)
13 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 203163


Attachments
stacktrace (3.32 KB, text/plain)
2013-08-19 19:40 UTC, everflux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2013-08-19 19:40:21 UTC
This bug was originally marked as duplicate of bug 217888, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201308152300)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b55, Java(TM) SE Runtime Environment, 1.7.0_40-ea-b38
OS: Linux

User Comments:
GUEST: Created a project with existing sources and imported extracted JDK 7 source code. Purpose of doing this was to enable "Find Usages" to show me call sites in java standard libraries.

GUEST: looking up the usages of a function

everflux: Invoked find usages, typing a little fast and inserting a linebreak inside the very method I wanted to find the usages for, invalidating the code.

infonaut: use refresh usage after renaming the usage

GUEST: invoked find usages

GUEST: Searching for method usage

GUEST: Searching in projects

GUEST: find usage on a class method.

jiriprox: NPE when searching for method usages, quickly after IDE starts

GUEST: find usages

rburkhead: Refreshed a search for a method that I had since removed.




Stacktrace: 
java.lang.NullPointerException: #145291: Cannot resolve handle: TreePathHandle[delegate:TreeDelegate[kind:METHOD, enclosingElement:ElementHandle[kind=METHOD; sigs=nl.brandtech.pricetool.app.common.RoundingPropertyVisitor roundValue (Lnl/brandtech/pricetool/app/annotations/ApiValue$Type;Ljava/math/BigDecimal;)Ljava/math/BigDecimal; ], file:/home/tkruse/arbeit/reucon/brandbase/pricetool/pricetool-app/src/main/java/nl/brandtech/pricetool/app/common/RoundingPropertyVisitor.java@99ac2f03:2195c37]]
ClasspathInfo [boot: /usr/lib/jvm/jdk1.7.0_40_ea/jre/lib/resources.jar:/usr/lib/jvm/jdk1.7.0_40_ea/jre/lib/rt.jar:/usr/lib/jvm/jdk1.7.0_40_ea/jre/lib/sunrsasign.jar:/usr/lib/jvm/jdk1.7.0_40_ea/jre/lib/jsse.jar:/usr/lib/jvm/jdk1.7.0_40_ea/jre/lib/jce.jar:/usr/lib/jvm/jdk1.7.0_40_ea/jre/lib/charsets.jar:/usr/lib/jvm/jdk1.7.0_40_ea/jre/lib/jfr.jar:/usr/lib/jvm/jdk1.7.0_40_ea/jre/classes:/usr/lib/jvm/jdk1.7.0_40_ea/jre/lib/ext/localedata.jar:/usr/lib/jvm/jdk1.7.0_40_ea/jre/lib/ext/dnsns.jar:/usr/lib/jvm/jdk1.7.0_40_ea/jre/li
   at org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin$1.run(JavaWhereUsedQueryPlugin.java:256)
   at org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin$1.run(JavaWhereUsedQueryPlugin.java:246)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:493)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:593)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:155)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:139)
Comment 1 everflux 2013-08-19 19:40:24 UTC
Created attachment 138883 [details]
stacktrace
Comment 2 Alexander Simon 2014-02-21 18:25:43 UTC
22 reports => P2
Comment 3 Ralph Ruijs 2014-07-07 08:54:51 UTC
All reports are from 7.4 and earlier. The steps given by rburkhead, jiriprox and everflux have been fixed in the meantime. Closing as worksforme.