manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1029900 - /incubator/lcf/trunk/modules/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceDerby.java
Date Tue, 02 Nov 2010 00:03:58 GMT
Author: kwright
Date: Tue Nov  2 00:03:58 2010
New Revision: 1029900

URL: http://svn.apache.org/viewvc?rev=1029900&view=rev
Log:
Pattern matching needed to be done still, part of CONNECTORS-109.

Modified:
    incubator/lcf/trunk/modules/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceDerby.java

Modified: incubator/lcf/trunk/modules/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceDerby.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceDerby.java?rev=1029900&r1=1029899&r2=1029900&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceDerby.java
(original)
+++ incubator/lcf/trunk/modules/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceDerby.java
Tue Nov  2 00:03:58 2010
@@ -1239,7 +1239,9 @@ public class DBInterfaceDerby extends Da
     {
       Pattern p = Pattern.compile(regularExpression,Pattern.CASE_INSENSITIVE);
       Matcher m = p.matcher(value);
-      return m.group(1);
+      if (m.find())
+        return m.group(1);
+      return "";
     }
     catch (IndexOutOfBoundsException e)
     {
@@ -1260,7 +1262,9 @@ public class DBInterfaceDerby extends Da
     {
       Pattern p = Pattern.compile(regularExpression,0);
       Matcher m = p.matcher(value);
-      return m.group(1);
+      if (m.find())
+        return m.group(1);
+      return "";
     }
     catch (IndexOutOfBoundsException e)
     {



Mime
View raw message