Do not allow to add the root folder under the root path. BLD200206270100
authormentlicher@netbeans.org
Wed, 26 Jun 2002 16:41:31 +0000
changeset 235932d31f5d6a82
parent 2358 7f3ad4622993
child 2360 afc2ac026933
Do not allow to add the root folder under the root path.
This is additional fix necessary not to break the functionality by the previous fix of issue #23678.
vcs.profiles.cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/list/CvsListRecursiveCommand.java
     1.1 --- a/vcs.profiles.cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/list/CvsListRecursiveCommand.java	Wed Jun 26 15:27:32 2002 +0000
     1.2 +++ b/vcs.profiles.cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/list/CvsListRecursiveCommand.java	Wed Jun 26 16:41:31 2002 +0000
     1.3 @@ -586,7 +586,7 @@
     1.4              if (path.length() < rootPathLength) continue;
     1.5              VcsDirContainer filesByName = filesByNameCont.addSubdirRecursive(path);
     1.6              VcsDirContainer parent = filesByNameCont.getParent(path);
     1.7 -            if (filesByName != null) {
     1.8 +            if (filesByName != null && path.length() > rootPathLength) {
     1.9                  //VcsDirContainer parent = filesByName.getParent();
    1.10                  //System.out.println("addDirName("+path+", "+parent+"("+((parent != null) ? parent.getPath() : "")+"))");
    1.11                  if (parent != null) addDirName(path, parent);