aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/event
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/awt/event')
-rw-r--r--libjava/java/awt/event/InvocationEvent.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/libjava/java/awt/event/InvocationEvent.java b/libjava/java/awt/event/InvocationEvent.java
index fbf7b5e..76d4a55 100644
--- a/libjava/java/awt/event/InvocationEvent.java
+++ b/libjava/java/awt/event/InvocationEvent.java
@@ -189,8 +189,13 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent
}
else
runnable.run();
- if (notifier != null)
- notifier.notifyAll();
+
+ Object o = notifier;
+ if (o != null)
+ synchronized(o)
+ {
+ o.notifyAll();
+ }
}
/**