Author: markus Date: Thu Feb 25 16:44:18 2016 New Revision: 1732332 URL: http://svn.apache.org/viewvc?rev=1732332&view=rev Log: NUTCH-2231 Jexl support in generator job
Modified: nutch/trunk/src/java/org/apache/nutch/util/JexlUtil.java Modified: nutch/trunk/src/java/org/apache/nutch/util/JexlUtil.java URL: http://svn.apache.org/viewvc/nutch/trunk/src/java/org/apache/nutch/util/JexlUtil.java?rev=1732332&r1=1732331&r2=1732332&view=diff ============================================================================== --- nutch/trunk/src/java/org/apache/nutch/util/JexlUtil.java (original) +++ nutch/trunk/src/java/org/apache/nutch/util/JexlUtil.java Thu Feb 25 16:44:18 2016 @@ -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:00Z Matcher matcher = datePattern.matcher(expr);