You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2014/03/26 14:27:04 UTC

svn commit: r1581828 - /manifoldcf/branches/CONNECTORS-912/framework/core/src/main/java/org/apache/manifoldcf/core/connectorpool/ConnectorPool.java

Author: kwright
Date: Wed Mar 26 13:27:03 2014
New Revision: 1581828

URL: http://svn.apache.org/r1581828
Log:
Unregistered connectors should cause a connector grab to return null

Modified:
    manifoldcf/branches/CONNECTORS-912/framework/core/src/main/java/org/apache/manifoldcf/core/connectorpool/ConnectorPool.java

Modified: manifoldcf/branches/CONNECTORS-912/framework/core/src/main/java/org/apache/manifoldcf/core/connectorpool/ConnectorPool.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-912/framework/core/src/main/java/org/apache/manifoldcf/core/connectorpool/ConnectorPool.java?rev=1581828&r1=1581827&r2=1581828&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-912/framework/core/src/main/java/org/apache/manifoldcf/core/connectorpool/ConnectorPool.java (original)
+++ manifoldcf/branches/CONNECTORS-912/framework/core/src/main/java/org/apache/manifoldcf/core/connectorpool/ConnectorPool.java Wed Mar 26 13:27:03 2014
@@ -474,6 +474,8 @@ public abstract class ConnectorPool<T ex
         if (stack.size() == 0)
         {
           T newrc = createConnectorInstance(threadContext,className);
+          if (newrc == null)
+            return null;
           newrc.connect(configParams);
           stack.add(newrc);
         }