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 46220

Summary: Race condition invoking menu produces NPE from WhereUsedElement.getJavaElement
Product: editor Reporter: Jesse Glick <jglick>
Component: RefactoringAssignee: issues@java <issues>
Status: RESOLVED WORKSFORME    
Severity: blocker Keywords: RANDOM, THREAD
Priority: P4    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Stack trace

Description Jesse Glick 2004-07-15 17:55:20 UTC
040714, 1.5.0 b58, GTK. I had selected a (private)
field in some module project and typed Alt-E N to
invoke Find Usages. Nothing seemed to be happening
so I typed N again (thinking that it had not
registered the first time). A little while later,
the Find Usages dialog appeared but when it was
finished with its work, this NPE was thrown, the
usages window was empty, and the character 'n' had
appeared in the text editor.

Probably this means that the Find Usages action is
failing to open the proper dialog within the same
EventQueue event that the action is invoked in,
and instead doing some slow background work,
letting the system meanwhile process GUI events
such as key types.
Comment 1 Jesse Glick 2004-07-15 17:55:42 UTC
Created attachment 16286 [details]
Stack trace
Comment 2 Jan Becicka 2004-10-27 13:53:23 UTC
I cannot reproduce it in latest build. We made some improvements in
refactoring actions. If it happens again, please reopen this issue.
Thanks.