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 - Race condition invoking menu produces NPE from WhereUsedElement.getJavaElement
Summary: Race condition invoking menu produces NPE from WhereUsedElement.getJavaElement
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords: RANDOM, THREAD
Depends on:
Blocks:
 
Reported: 2004-07-15 17:55 UTC by Jesse Glick
Modified: 2007-04-03 18:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (612 bytes, text/plain)
2004-07-15 17:55 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
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.