changeset 11365:d96e70a49103

8072088: [PIT] NPE in DnD tests apparently because of the fix to JDK-8061636 Reviewed-by: ant, prr, serb
author azvegint
date Mon, 02 Feb 2015 21:38:19 +0300
parents 664e14537633
children ffddde2e67dc
files src/java.desktop/share/classes/java/awt/Container.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/java/awt/Container.java	Thu Feb 05 16:16:46 2015 +0300
+++ b/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) {