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.
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);