summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2006-11-25 15:10:54 +0000
committerMark Wielaard <mark@klomp.org>2006-11-25 15:10:54 +0000
commit05b6d47379292578f0434e65c4ce29db59b9968d (patch)
treefbc7245772f6599f524002f6ca30dfa8882d70a7 /java
parent9237ae33653fec2c82805fc588325215faff2c2f (diff)
downloadclasspath-05b6d47379292578f0434e65c4ce29db59b9968d.tar.gz
* java/awt/EventQueue.java (pop): Only terminate dispatchThread when
it is still running.
Diffstat (limited to 'java')
-rw-r--r--java/awt/EventQueue.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/java/awt/EventQueue.java b/java/awt/EventQueue.java
index 0b6e03efa..74dbd5fb6 100644
--- a/java/awt/EventQueue.java
+++ b/java/awt/EventQueue.java
@@ -584,8 +584,11 @@ public class EventQueue
prev = null;
// Tell our EventDispatchThread that it can end
// execution.
- dispatchThread.interrupt();
- dispatchThread = null;
+ if (dispatchThread != null)
+ {
+ dispatchThread.interrupt();
+ dispatchThread = null;
+ }
}
}
}