Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-08-04 11:49:38 -0400
committerMichael Valenta2005-08-04 11:49:38 -0400
commitefc03ce05a99889b4bdc9ede9f17e18a3424f094 (patch)
treefcecf8dacd0a05e832396b88491f5b114af88cb0
parente5b92d2906cd03b65450d9b2916117de66583167 (diff)
downloadeclipse.platform.team-efc03ce05a99889b4bdc9ede9f17e18a3424f094.tar.gz
eclipse.platform.team-efc03ce05a99889b4bdc9ede9f17e18a3424f094.tar.xz
eclipse.platform.team-efc03ce05a99889b4bdc9ede9f17e18a3424f094.zip
Bug 101329 NPE while disconnecting folder
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseFolder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseFolder.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseFolder.java
index cb0364e32..47210cdbe 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseFolder.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseFolder.java
@@ -252,7 +252,7 @@ class EclipseFolder extends EclipseResource implements ICVSFolder {
IResource resource = members[i];
if (resource.getType() == IResource.FILE) {
ResourceAttributes attrs = resource.getResourceAttributes();
- if (attrs.isReadOnly()) {
+ if (attrs != null && attrs.isReadOnly()) {
attrs.setReadOnly(false);
resource.setResourceAttributes(attrs);
}

Back to the top