8072088: [PIT] NPE in DnD tests apparently because of the fix to JDK-8061636
authorazvegint
Mon, 02 Feb 2015 21:38:19 +0300
changeset 29011 9103251db920
parent 29010 10d6c5d5ebcf
child 29012 79f45920a5ce
8072088: [PIT] NPE in DnD tests apparently because of the fix to JDK-8061636 Reviewed-by: ant, prr, serb
jdk/src/java.desktop/share/classes/java/awt/Container.java
--- a/jdk/src/java.desktop/share/classes/java/awt/Container.java	Thu Feb 05 16:16:46 2015 +0300
+++ b/jdk/src/java.desktop/share/classes/java/awt/Container.java	Mon Feb 02 21:38:19 2015 +0300
@@ -4636,7 +4636,7 @@
             // drag has an associated drop target. MOUSE_ENTERED comes when the
             // mouse is in the native container already. To propagate this event
             // properly we should null out targetLastEntered.
-            targetLastEnteredDT = null;
+            targetLastEnteredDT.clear();
         } else if (id == MouseEvent.MOUSE_ENTERED) {
             isMouseDTInNativeContainer = true;
         } else if (id == MouseEvent.MOUSE_EXITED) {