SOLR-888 -- Fixing null pointer bug introduced by last commit for this issue

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@726510 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2008-12-14 18:28:42 +00:00
parent b2f340e60f
commit f42b62c1d7
1 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,9 @@ public class DateFormatTransformer extends Transformer {
}
aRow.put(column, results);
} else {
aRow.put(column, process(o.toString(), fmt));
if (o != null) {
aRow.put(column, process(o.toString(), fmt));
}
}
} catch (ParseException e) {
LOG.warn( "Could not parse a Date field ", e);