Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-07-14 10:37:53 -0400
committerMichael Valenta2004-07-14 10:37:53 -0400
commit25438c00adae05025da00cf9621caec1dd104bb7 (patch)
tree4110d7237d4e24388ac7103766929bced15d8633
parent3d8c0faf7d24036f572bd1a5ea51ca4aa7da5a30 (diff)
downloadeclipse.platform.team-25438c00adae05025da00cf9621caec1dd104bb7.tar.gz
eclipse.platform.team-25438c00adae05025da00cf9621caec1dd104bb7.tar.xz
eclipse.platform.team-25438c00adae05025da00cf9621caec1dd104bb7.zip
Bug 68932 Exception when project is closed
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/SynchronizeModelProvider.java6
1 files changed, 4 insertions, 2 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 a3de792c1..b68e27f2c 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
@@ -479,9 +479,11 @@ public abstract class SynchronizeModelProvider implements ISyncInfoSetChangeList
}
}
} catch (CoreException e) {
- // If the resource exists, log the exception and continue.
+ // If the resource exists (is accessible), log the exception and continue.
// Otherwise, just ignore the exception
- if (resource.exists() && e.getStatus().getCode() != IResourceStatus.RESOURCE_NOT_FOUND) {
+ if (resource.isAccessible()
+ && e.getStatus().getCode() != IResourceStatus.RESOURCE_NOT_FOUND
+ && e.getStatus().getCode() != IResourceStatus.PROJECT_NOT_OPEN) {
TeamPlugin.log(e);
}
}

Back to the top