Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-12-07 10:47:55 +0000
committerUwe Stieber2012-12-07 10:47:55 +0000
commitb541f2002826600d1bcecd79aa38e5e1e51b99fc (patch)
tree61e6c32d08c1206064d4c95582414f1fc69dc7da
parent926a368aaba058deebb468fe7bd6b921fafb5dec (diff)
downloadorg.eclipse.tcf-b541f2002826600d1bcecd79aa38e5e1e51b99fc.tar.gz
org.eclipse.tcf-b541f2002826600d1bcecd79aa38e5e1e51b99fc.tar.xz
org.eclipse.tcf-b541f2002826600d1bcecd79aa38e5e1e51b99fc.zip
Target Explorer: Fix accessing the display once already disposed on shutdown
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/async/UICallbackInvocationDelegate.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/async/UICallbackInvocationDelegate.java b/target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/async/UICallbackInvocationDelegate.java
index 0703d0455..662fc33a5 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/async/UICallbackInvocationDelegate.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/async/UICallbackInvocationDelegate.java
@@ -27,7 +27,12 @@ public class UICallbackInvocationDelegate implements AsyncCallbackCollector.ICal
public void invoke(Runnable runnable) {
Assert.isNotNull(runnable);
if (PlatformUI.getWorkbench() != null && PlatformUI.getWorkbench().getDisplay() != null) {
- PlatformUI.getWorkbench().getDisplay().asyncExec(runnable);
+ try {
+ PlatformUI.getWorkbench().getDisplay().asyncExec(runnable);
+ }
+ catch (Exception e) {
+ // if display is disposed, silently ignore.
+ }
}
}
}

Back to the top