Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2009-11-22 09:57:38 +0000
committerEike Stepper2009-11-22 09:57:38 +0000
commit5ee64bf489660f7d47bfa7a113f74e815b409941 (patch)
tree4d52d53c7f2200e2827df9ebe705585080bd9ef5 /plugins/org.eclipse.emf.cdo.ui/src/org
parent3556d90c84be0e03a5878a4b5e1ebbad4fecf8fe (diff)
downloadcdo-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.java15
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)

Back to the top