aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/events/CompositeEventListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/events/CompositeEventListener.java b/src/java/org/apache/fop/events/CompositeEventListener.java
index d1f207c79..c2bef322e 100644
--- a/src/java/org/apache/fop/events/CompositeEventListener.java
+++ b/src/java/org/apache/fop/events/CompositeEventListener.java
@@ -51,7 +51,7 @@ public class CompositeEventListener implements EventListener {
* Indicates whether any listeners have been registered with the broadcaster.
* @return true if listeners are present, false otherwise
*/
- public boolean hasEventListeners() {
+ public synchronized boolean hasEventListeners() {
return !listeners.isEmpty();
}