manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1497321 - /manifoldcf/branches/CONNECTORS-703/framework/crawler-ui/src/main/webapp/execute.jsp
Date Thu, 27 Jun 2013 12:25:30 GMT
Author: kwright
Date: Thu Jun 27 12:25:30 2013
New Revision: 1497321

URL: http://svn.apache.org/r1497321
Log:
Fix NPE

Modified:
    manifoldcf/branches/CONNECTORS-703/framework/crawler-ui/src/main/webapp/execute.jsp

Modified: manifoldcf/branches/CONNECTORS-703/framework/crawler-ui/src/main/webapp/execute.jsp
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-703/framework/crawler-ui/src/main/webapp/execute.jsp?rev=1497321&r1=1497320&r2=1497321&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-703/framework/crawler-ui/src/main/webapp/execute.jsp (original)
+++ manifoldcf/branches/CONNECTORS-703/framework/crawler-ui/src/main/webapp/execute.jsp Thu
Jun 27 12:25:30 2013
@@ -256,9 +256,12 @@
 					{
 						connection.getPrerequisites().clear();
 						String[] y = variableContext.getParameterValues("prerequisites");
-						for (String s : y)
+						if (y != null)
 						{
-							connection.getPrerequisites().add(s);
+							for (String s : y)
+							{
+								connection.getPrerequisites().add(s);
+							}
 						}
 					}
 					
@@ -381,9 +384,12 @@
 					{
 						connection.getPrerequisites().clear();
 						String[] y = variableContext.getParameterValues("prerequisites");
-						for (String s : y)
+						if (y != null)
 						{
-							connection.getPrerequisites().add(s);
+							for (String s : y)
+							{
+								connection.getPrerequisites().add(s);
+							}
 						}
 					}
 



Mime
View raw message