Skip to content

Commit

Permalink
fixed problem with DateFieldPropertySchema
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbarzilay committed Sep 26, 2016
1 parent 79ebe38 commit 5afe08d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ else if (datePredicates.containsKey("gt") && datePredicates.containsKey("lt")) {
@Override
public Map<String, Object> toProperties(Map<String, Object> source) {
Object dateField = source.get(this.field);
if (dateField == null) return Collections.emptyMap();
if (dateField == null || dateField.equals("")) return Collections.emptyMap();
Date parsedDate = fromSource(dateField.toString());
String displayDate = toDisplay(parsedDate);
return Collections.singletonMap(this.key, displayDate);
Expand Down

0 comments on commit 5afe08d

Please sign in to comment.