Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2004-03-25 16:09:57 +0000
committerJean Michel-Lemieux2004-03-25 16:09:57 +0000
commitfb7591db99d1d62476d6ac8e39396be16c0c1ca1 (patch)
tree29857b3cb73750864d5a34cd6cee6d8a395d3c57
parent13976c371d2cfc12c0e60308eca6bd6c96266df7 (diff)
downloadeclipse.platform.team-fb7591db99d1d62476d6ac8e39396be16c0c1ca1.tar.gz
eclipse.platform.team-fb7591db99d1d62476d6ac8e39396be16c0c1ca1.tar.xz
eclipse.platform.team-fb7591db99d1d62476d6ac8e39396be16c0c1ca1.zip
Bug 56104 Widget is disposed exception from Sync view
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/SynchronizeModelProvider.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/SynchronizeModelProvider.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/SynchronizeModelProvider.java
index 808dfb75f..0368a8ff2 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/SynchronizeModelProvider.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/SynchronizeModelProvider.java
@@ -422,7 +422,8 @@ public abstract class SynchronizeModelProvider implements ISyncInfoSetChangeList
* @return
*/
private boolean canUpdateViewer() {
- return refreshViewer && getViewer() != null;
+ StructuredViewer viewer = getViewer();
+ return refreshViewer && viewer != null && ! viewer.getControl().isDisposed();
}
/**

Back to the top