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 42641 - Random NPE from ToolTipManager
Summary: Random NPE from ToolTipManager
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: RANDOM
: 43215 51539 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-30 13:00 UTC by David Strupl
Modified: 2008-12-23 00:37 UTC (History)
0 users

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 David Strupl 2004-04-30 13:00:13 UTC
I work with NB 3.6 FCS (JDK 1.4.2 on RH7.3),
occasionally this exception pops up in my face.
Usually after I try
to execute something, e.g. last time after trying
to generate Javadoc for my class. I don't know
whether this is a known issue or not. But it is
annoying.

java.lang.NullPointerException
	at
javax.swing.ToolTipManager.mouseExited(ToolTipManager.java:532)
	at
java.awt.Component.processMouseEvent(Component.java:5106)
	at
java.awt.Component.processEvent(Component.java:4897)
	at
java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Window.processEvent(Window.java:1092)
	at
java.awt.Component.dispatchEventImpl(Component.java:3615)
	at
java.awt.Container.dispatchEventToSelf(Container.java:1649)
	at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3481)
	at
java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:3315)
	at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3180)
	at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at
java.awt.Container.dispatchEventImpl(Container.java:1613)
	at
java.awt.Window.dispatchEventImpl(Window.java:1606)
	at
java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at
java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	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)
Comment 1 David Simonek 2004-06-15 16:37:22 UTC
It doesn't happen at all on windows. Passing to Milos to evaluate on
Linux. However I see no netbeans code in stack trace, so this will be
either hard to fix or JDK problem.

Looking at the code, IMHO it's JDK bug, here is code in question
Container insideComponentWindow = insideComponent.getTopLevelAncestor();
location.x -= insideComponentWindow.getX();  <<<<< NPE here

However method getTopLevelAncestor() *can* return null if source is
out of AWT hierarchy, which indeed could happen if mouse events are
delayed because AWT system is busy at the time.
Milos, please try to find this error in JDK database and close this as
duplicate of found JDK bug. Thx.
Comment 2 Milos Kleint 2004-06-21 13:04:00 UTC
yup. looks like a bug on 1.4.2.. 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5050506
according to the comment there, it's fixed in 1.5.
closing as WONTFIX since it's a JDK bug.
Comment 3 Milos Kleint 2004-07-02 08:11:35 UTC
*** Issue 43215 has been marked as a duplicate of this issue. ***
Comment 4 Jan Pokorsky 2004-11-24 18:41:22 UTC
*** Issue 51539 has been marked as a duplicate of this issue. ***
Comment 5 Marian Mirilovic 2005-07-14 08:31:16 UTC
JDK bug .. closing