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.
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)
Created attachment 138883 [details] stacktrace
22 reports => P2
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.