Apache Nutch is an extensible and scalable web crawler
NUTCH-2231 Jexl support in generator job
Markus Jelsma25e879afc9c4
diff --git a/src/java/org/apache/nutch/util/JexlUtil.java b/src/java/org/apache/nutch/util/JexlUtil.javaindex a0abab44c..656a458c4 100644--- a/src/java/org/apache/nutch/util/JexlUtil.java+++ b/src/java/org/apache/nutch/util/JexlUtil.java@@ -47,6 +47,8 @@ public class JexlUtil {* @return parsed Jexl expression or null in case of parse error*/public static Expression parseExpression(String expr) {+ if (expr == null) return null;+try {// Translate any date object into a long, dates must be specified as 20-03-2016T00:00:00ZMatcher matcher = datePattern.matcher(expr);