Author: kwright
Date: Fri Sep 21 18:56:27 2012
New Revision: 1388617
URL: http://svn.apache.org/viewvc?rev=1388617&view=rev
Log:
Fix for CONNECTORS-537.
Modified:
manifoldcf/trunk/CHANGES.txt
manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxactivityreport.jsp
manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp
manifoldcf/trunk/framework/crawler-ui/src/main/webapp/resultreport.jsp
manifoldcf/trunk/framework/crawler-ui/src/main/webapp/simplereport.jsp
Modified: manifoldcf/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1388617&r1=1388616&r2=1388617&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Fri Sep 21 18:56:27 2012
@@ -5,6 +5,10 @@ $Id$
======================= Release 1.0 =====================
+CONNECTORS-537: NPE when trying to display a history report when
+the corresponding connector is unregistered.
+(Erlend Garason, Karl Wright)
+
CONNECTORS-533: Do not forgo xxx-README files in connector-lib-proprietary.
(Karl Wright)
Modified:
manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxactivityreport.jsp
URL:
http://svn.apache.org/viewvc/manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxactivityreport.jsp?rev=1388617&r1=1388616&r2=1388617&view=diff
==============================================================================
--- manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxactivityreport.jsp
(original)
+++ manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxactivityreport.jsp
Fri Sep 21 18:56:27 2012
@@ -351,7 +351,7 @@ if (maintenanceUnderway == false)
String[] outputActivityList =
OutputConnectionManagerFactory.getAllOutputActivities(threadContext);
String[] connectorActivityList =
RepositoryConnectorFactory.getActivitiesList(threadContext,thisConnection.getClassName());
String[] globalActivityList =
IRepositoryConnectionManager.activitySet;
- activityList = new String[outputActivityList.length +
connectorActivityList.length + globalActivityList.length];
+ activityList = new String[outputActivityList.length +
((connectorActivityList==null)?0:connectorActivityList.length) +
globalActivityList.length];
int k2 = 0;
int j;
if (outputActivityList != null)
Modified:
manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp
URL:
http://svn.apache.org/viewvc/manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp?rev=1388617&r1=1388616&r2=1388617&view=diff
==============================================================================
---
manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp
(original)
+++
manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp
Fri Sep 21 18:56:27 2012
@@ -351,7 +351,7 @@ if (maintenanceUnderway == false)
String[] outputActivityList =
OutputConnectionManagerFactory.getAllOutputActivities(threadContext);
String[] connectorActivityList =
RepositoryConnectorFactory.getActivitiesList(threadContext,thisConnection.getClassName());
String[] globalActivityList =
IRepositoryConnectionManager.activitySet;
- activityList = new String[outputActivityList.length +
connectorActivityList.length + globalActivityList.length];
+ activityList = new String[outputActivityList.length +
((connectorActivityList==null)?0:connectorActivityList.length) +
globalActivityList.length];
int k2 = 0;
int j;
if (outputActivityList != null)
Modified: manifoldcf/trunk/framework/crawler-ui/src/main/webapp/resultreport.jsp
URL:
http://svn.apache.org/viewvc/manifoldcf/trunk/framework/crawler-ui/src/main/webapp/resultreport.jsp?rev=1388617&r1=1388616&r2=1388617&view=diff
==============================================================================
--- manifoldcf/trunk/framework/crawler-ui/src/main/webapp/resultreport.jsp
(original)
+++ manifoldcf/trunk/framework/crawler-ui/src/main/webapp/resultreport.jsp Fri
Sep 21 18:56:27 2012
@@ -378,7 +378,7 @@ if (maintenanceUnderway == false)
String[] outputActivityList =
OutputConnectionManagerFactory.getAllOutputActivities(threadContext);
String[] connectorActivityList =
RepositoryConnectorFactory.getActivitiesList(threadContext,thisConnection.getClassName());
String[] globalActivityList =
IRepositoryConnectionManager.activitySet;
- activityList = new String[outputActivityList.length +
connectorActivityList.length + globalActivityList.length];
+ activityList = new String[outputActivityList.length +
((connectorActivityList==null)?0:connectorActivityList.length) +
globalActivityList.length];
int k2 = 0;
int j;
if (outputActivityList != null)
Modified: manifoldcf/trunk/framework/crawler-ui/src/main/webapp/simplereport.jsp
URL:
http://svn.apache.org/viewvc/manifoldcf/trunk/framework/crawler-ui/src/main/webapp/simplereport.jsp?rev=1388617&r1=1388616&r2=1388617&view=diff
==============================================================================
--- manifoldcf/trunk/framework/crawler-ui/src/main/webapp/simplereport.jsp
(original)
+++ manifoldcf/trunk/framework/crawler-ui/src/main/webapp/simplereport.jsp Fri
Sep 21 18:56:27 2012
@@ -306,7 +306,7 @@ if (maintenanceUnderway == false)
String[] outputActivityList =
OutputConnectionManagerFactory.getAllOutputActivities(threadContext);
String[] connectorActivityList =
RepositoryConnectorFactory.getActivitiesList(threadContext,thisConnection.getClassName());
String[] globalActivityList =
IRepositoryConnectionManager.activitySet;
- activityList = new String[outputActivityList.length +
connectorActivityList.length + globalActivityList.length];
+ activityList = new String[outputActivityList.length +
((connectorActivityList==null)?0:connectorActivityList.length) +
globalActivityList.length];
int k2 = 0;
int j;
if (outputActivityList != null)