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);
+ }
}
}
