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 53405 - Index Search with race condition NPE
Summary: Index Search with race condition NPE
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-14 11:26 UTC by arittner
Modified: 2008-12-22 18:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arittner 2005-01-14 11:26:42 UTC
To reproduce the bug:

Open Javadoc Index Search (e.g. for 1.4.2)
Find the word "help"
You get helpButtonMnemonic
        helpButtonText
        helpButtonToolTipText

Click "fast" between helpButtonMnemonic and
helpButtonText.

Yout get this exception:

java.lang.NullPointerException
[catch] at
javax.swing.JEditorPane$3.run(JEditorPane.java:565)
	at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

regards, 
 josh.
Comment 1 Jan Pokorsky 2005-02-08 18:14:52 UTC
Yes, I can reproduce it smoothly too [winXP, jdk 1.5.0-b64] and it is
pretty annoying.

The javadoc module can hardly fix this since it delegates showing of
url to the HtmlBrowser.setURL that is a part of openide.

NPE occurs because the document is missing
Document.StreamDescriptionProperty (should be URL). So I would suggest
to investigate why the SwingBrowserImpl is resetting that property to
null.
Comment 2 David Simonek 2005-02-10 12:10:24 UTC
Stan, please take care of this, thanks.
Comment 3 Stanislav Aubrecht 2005-02-11 11:40:48 UTC
fixed

Checking in SwingBrowserImpl.java;
/cvs/openide/src/org/openide/awt/SwingBrowserImpl.java,v  <-- 
SwingBrowserImpl.java
new revision: 1.35; previous revision: 1.34
done
Comment 4 Zdenek Konecny 2005-08-05 15:04:37 UTC
Verified in NetBeans 4.2 Build 200507041800