incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1070440 - /incubator/lcf/branches/CONNECTORS-151-branch/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java
Date Mon, 14 Feb 2011 11:07:58 GMT
Author: kwright
Date: Mon Feb 14 11:07:58 2011
New Revision: 1070440

URL: http://svn.apache.org/viewvc?rev=1070440&view=rev
Log:
Fix the root path problem

Modified:
    incubator/lcf/branches/CONNECTORS-151-branch/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java

Modified: incubator/lcf/branches/CONNECTORS-151-branch/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-151-branch/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java?rev=1070440&r1=1070439&r2=1070440&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-151-branch/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java
(original)
+++ incubator/lcf/branches/CONNECTORS-151-branch/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java
Mon Feb 14 11:07:58 2011
@@ -641,7 +641,13 @@ public class FilenetConnector extends or
     {
       if (folderName.startsWith("/"))
         folderName = folderName.substring(1);
-      String[] folderPath = folderName.split("/");
+      
+      String[] folderPath;
+      if (folderName.length() == 0)
+        folderPath = new String[0];
+      else
+        folderPath = folderName.split("/");
+      
       String[] rval = doGetChildFolders(folderPath);
       if (rval == null)
         return null;



Mime
View raw message