diff options
author | Eike Stepper | 2009-11-22 09:57:38 +0000 |
---|---|---|
committer | Eike Stepper | 2009-11-22 09:57:38 +0000 |
commit | 5ee64bf489660f7d47bfa7a113f74e815b409941 (patch) | |
tree | 4d52d53c7f2200e2827df9ebe705585080bd9ef5 /plugins/org.eclipse.emf.cdo.ui/src/org | |
parent | 3556d90c84be0e03a5878a4b5e1ebbad4fecf8fe (diff) | |
download | cdo-5ee64bf489660f7d47bfa7a113f74e815b409941.tar.gz cdo-5ee64bf489660f7d47bfa7a113f74e815b409941.tar.xz cdo-5ee64bf489660f7d47bfa7a113f74e815b409941.zip |
[295179] Suppress logging of InterruptedException
https://bugs.eclipse.org/bugs/show_bug.cgi?id=295179
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui/src/org')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOInteractiveExceptionHandler.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOInteractiveExceptionHandler.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOInteractiveExceptionHandler.java index 0185262edf..63d44bc766 100644 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOInteractiveExceptionHandler.java +++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOInteractiveExceptionHandler.java @@ -62,13 +62,16 @@ public class CDOInteractiveExceptionHandler implements ExceptionHandler, IElemen }; Display display = UIUtil.getDisplay(); - if (Thread.currentThread() == display.getThread()) + if (display != null && !display.isDisposed()) { - runnable.run(); - } - else - { - display.syncExec(runnable); + if (display.getThread() == Thread.currentThread()) + { + runnable.run(); + } + else + { + display.syncExec(runnable); + } } if (result[0] != null) |