Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2002-05-30 21:40:12 +0000
committerMichael Valenta2002-05-30 21:40:12 +0000
commit7dcd3a4fb198867e3195fc1af06cbcef2bfa73b0 (patch)
tree4bdd8d1079738ac8063a5d9b0a20e5eb652bc872
parentc878dd64952e4d271af636727218ab9bf11a382f (diff)
downloadeclipse.platform.team-7dcd3a4fb198867e3195fc1af06cbcef2bfa73b0.tar.gz
eclipse.platform.team-7dcd3a4fb198867e3195fc1af06cbcef2bfa73b0.tar.xz
eclipse.platform.team-7dcd3a4fb198867e3195fc1af06cbcef2bfa73b0.zip
Fixed getRelativePath for empty paths
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseResource.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseResource.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseResource.java
index d05706ccb..8898dc76b 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseResource.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseResource.java
@@ -60,7 +60,8 @@ abstract class EclipseResource implements ICVSResource, Comparable {
EclipseResource rootFolder;
String result;
rootFolder = (EclipseResource)root;
- result = Util.getRelativePath(rootFolder.getPath(), getPath());
+ result = Util.getRelativePath(rootFolder.getPath(), getPath());
+ if (result.length() == 0) return CURRENT_LOCAL_FOLDER;
return result;
} catch (ClassCastException e) {
throw new CVSException(Policy.bind("EclipseResource.invalidResourceClass"), e); //$NON-NLS-1$

Back to the top