Permalink
Browse files

NUTCH-2231 Jexl support in generator job

git-svn-id: https://svn.apache.org/repos/asf/nutch/trunk@1732332 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 9e64067 commit 25e879afc9c48981e3daccb055b5389799fae464 Markus Jelsma committed Feb 25, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/java/org/apache/nutch/util/JexlUtil.java
@@ -47,6 +47,8 @@
* @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);

0 comments on commit 25e879a

Please sign in to comment.