Skip to content

Commit

Permalink
Fixed issue FasterXML#51: StackOverflowError resulting from any call …
Browse files Browse the repository at this point in the history
…to JodaDateSerializerBase#isEmpty.
  • Loading branch information
clamothe committed Jan 12, 2015
1 parent 5329b00 commit aff2c7f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ protected JodaDateSerializerBase(Class<T> type, JacksonJodaDateFormat format,
public final boolean isEmpty(T value) {
return isEmpty(null, value);
}


@Override
public boolean isEmpty(SerializerProvider prov, T value) {
return value == null;
}

@Override
public JsonSerializer<?> createContextual(SerializerProvider prov,
BeanProperty property) throws JsonMappingException
Expand Down

0 comments on commit aff2c7f

Please sign in to comment.