diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-06 10:49:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-06 10:49:11 +0200 |
commit | 5c2f970557791aa2b4a65a1c1298492a0f313225 (patch) | |
tree | a3640e1b29068d413c4f7bde311ed2c030c74bc7 /jurt | |
parent | abde31a2bc68302e1afafe1fcc3f5d85369010f8 (diff) |
cid#1362511: Concurrent data access violation
Change-Id: I35a381f9601178a3aab98b11172d33372d5c3dc1
Diffstat (limited to 'jurt')
-rw-r--r-- | jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java b/jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java index 131f2b5cc56c..7b96414ff611 100644 --- a/jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java +++ b/jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java @@ -89,9 +89,11 @@ public class JobQueue { try { enter(2000, _disposeId); } catch(Throwable throwable) { - if(!jobList.isEmpty() || _active) { // there was a job in progress, so give a stack - System.err.println(getClass().getName() + " - exception occurred:" + throwable); - throwable.printStackTrace(System.err); + synchronized (this) { + if(!jobList.isEmpty() || _active) { // there was a job in progress, so give a stack + System.err.println(getClass().getName() + " - exception occurred:" + throwable); + throwable.printStackTrace(System.err); + } } } finally { |