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 164370 - NullPointerException at org.netbeans.modules.refactoring.java.ui.WhereUsedPanel$1.run
Summary: NullPointerException at org.netbeans.modules.refactoring.java.ui.WhereUsedPan...
Status: RESOLVED DUPLICATE of bug 120577
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-04 10:38 UTC by ecastro
Modified: 2009-05-20 13:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 150543


Attachments
stacktrace (1.22 KB, text/plain)
2009-05-04 10:38 UTC, ecastro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ecastro 2009-05-04 10:38:28 UTC
Build: NetBeans IDE 6.7 Beta (Build 200904242137)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows XP, 5.1, x86

User Comments:
ecastro: I was pressing CTRL+ALT+H to get the Find Usage shortcut.
However, I have a strange keyboard layout (designed with MS Keyboard Layout Creator) in which CTRL+ALT+H produce '?' (left arrow).
I guess that it is the source of the bug as it does not reproduce when using a standard keyboard.



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.refactoring.java.ui.WhereUsedPanel$1.run(WhereUsedPanel.java:152)
        at org.netbeans.modules.refactoring.java.ui.WhereUsedPanel$1.run(WhereUsedPanel.java:140)
        at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:450)
        at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)
        at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:113)
        at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:189)
Comment 1 ecastro 2009-05-04 10:38:36 UTC
Created attachment 81455 [details]
stacktrace
Comment 2 Jan Pokorsky 2009-05-20 13:29:58 UTC
It is a known bug of incorrect resolving of TreePathHandle/ElemenHandle. Most likely a race condition.

*** This issue has been marked as a duplicate of 120577 ***