Workaround for bug 10774
Bug 10774 (NPE in ToolTipManager.mouseExited) has popped up
here twice in two days. You may also have seen it. It has a couple
of duplicates.
http://www.intellij.net/tracker/idea/viewSCR?publicId=10774
I decided to investigate. 10774 is caused by a bug in Swing,
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5050506.
This bug is marked as "Closed, not reproducible", which means
that they are unable to reproduce it in JDK 1.5.
A workaround for this bug is to override removeNotify and send
a fake MouseEvent to ToolTipManager.
This will hide whatever tooltip is showing, preventing mouseExited
from accessing an invalid window later on.
/Mikael
Please sign in to leave a comment.
(Replying to my own message. Pitiful. :)
This only fixes one part of the bug, the part when a component
is deleted. The other part is described in
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5041071
This needs more investigation.
/Mikael