Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2013-09-13 19:34:48 -0400
committerSergey Prigogin2013-09-13 19:34:48 -0400
commit7472a8301e10e599107dad60bb5f4f7be9c52567 (patch)
treed90d449a996c3aebd5599696d7411ff140b46c56
parent2cf5b6d36d871b92ee7f3cd23c1c8289e58374a9 (diff)
downloadorg.eclipse.cdt-7472a8301e10e599107dad60bb5f4f7be9c52567.tar.gz
org.eclipse.cdt-7472a8301e10e599107dad60bb5f4f7be9c52567.tar.xz
org.eclipse.cdt-7472a8301e10e599107dad60bb5f4f7be9c52567.zip
Bug 417220 - MakeContentProvider causes SWTException: Widget is
disposed.
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java
index c4beefe008..1c9f753f5c 100644
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java
+++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java
@@ -235,6 +235,8 @@ public class MakeContentProvider implements ITreeContentProvider, IMakeTargetLis
Display.getDefault().asyncExec(new Runnable() {
@Override
public void run() {
+ if (viewer == null || viewer.getControl() == null || viewer.getControl().isDisposed())
+ return;
viewer.refresh();
}
});

Back to the top