6576054: NullPointerException when closing tooltip by pressing esc
Reviewed-by: rupashka
--- a/jdk/src/share/classes/javax/swing/ToolTipManager.java Fri Sep 17 23:09:29 2010 +0400
+++ b/jdk/src/share/classes/javax/swing/ToolTipManager.java Fri Sep 17 23:16:19 2010 +0400
@@ -459,7 +459,7 @@
if (insideComponent == null) {
// Drag exit
}
- if (window != null && event.getSource() == window) {
+ if (window != null && event.getSource() == window && insideComponent != null) {
// if we get an exit and have a heavy window
// we need to check if it if overlapping the inside component
Container insideComponentWindow = insideComponent.getTopLevelAncestor();