manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1534154 - in /manifoldcf/trunk: CHANGES.txt framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
Date Mon, 21 Oct 2013 13:46:55 GMT
Author: kwright
Date: Mon Oct 21 13:46:54 2013
New Revision: 1534154

URL: http://svn.apache.org/r1534154
Log:
Fix for CONNECTORS-790.

Modified:
    manifoldcf/trunk/CHANGES.txt
    manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java

Modified: manifoldcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1534154&r1=1534153&r2=1534154&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Mon Oct 21 13:46:54 2013
@@ -5,6 +5,9 @@ $Id$
 
 ======================= Release 1.4 =====================
 
+CONNECTORS-790: Fix NPE when reading job status via API.
+(Erlend Garåsen, Karl Wright)
+
 CONNECTORS-789: Fix broken metadata field display in SharePoint
 connector UI.
 (Mark Libucha, Karl Wright)

Modified: manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java?rev=1534154&r1=1534153&r2=1534154&view=diff
==============================================================================
--- manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
(original)
+++ manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
Mon Oct 21 13:46:54 2013
@@ -2004,6 +2004,8 @@ public class ManifoldCF extends org.apac
   protected static int apiReadJobStatuses(IThreadContext tc, Configuration output, Map<String,List<String>>
queryParameters)
     throws ManifoldCFException
   {
+    if (queryParameters == null)
+      queryParameters = new HashMap<String,List<String>>();
     int maxCount;
     List<String> maxCountList = queryParameters.get("maxcount");
     if (maxCountList == null || maxCountList.size() == 0)



Mime
View raw message