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

Summary: NullPointerException at org.netbeans.modules.refactoring.java.ui.WhereUsedPanel$1.run
Product: java Reporter: ecastro <ecastro>
Component: RefactoringAssignee: Jan Pokorsky <jpokorsky>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=150543
Issue Type: DEFECT Exception Reporter: 150543
Attachments: stacktrace

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 ***