changeset 10576:a91d08fcea73

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 afb4e235793b
children fdbc5637a8c4
files src/share/classes/java/awt/Container.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/Container.java	Fri Jan 16 13:53:44 2015 +0300
+++ b/src/share/classes/java/awt/Container.java	Mon Feb 02 21:38:19 2015 +0300
@@ -4618,7 +4618,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) {