Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Commit

Permalink
One minor fix to #52
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Sep 14, 2015
1 parent c55b8e7 commit aa4f125
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected T _deserializeEntries(JsonParser p, DeserializationContext ctxt)
// 28-Nov-2010, tatu: Should probably support "ignorable properties" in future...
Object value;
if (t == JsonToken.VALUE_NULL) {
_handleNull(ctxt, fieldName, _valueDeserializer, builder);
_handleNull(ctxt, key, _valueDeserializer, builder);
continue;
}
if (typeDeser == null) {
Expand All @@ -63,7 +63,7 @@ protected T _deserializeEntries(JsonParser p, DeserializationContext ctxt)
* is needed; default is to simply ignore and skip such values, but alternative
* could be to throw an exception.
*/
protected void _handleNull(DeserializationContext ctxt, String fieldName,
protected void _handleNull(DeserializationContext ctxt, Object key,
JsonDeserializer<?> valueDeser,
ImmutableMap.Builder<Object, Object> builder) throws IOException
{
Expand All @@ -73,7 +73,7 @@ protected void _handleNull(DeserializationContext ctxt, String fieldName,
// Actually, first, see if there's an alternative to Java null
Object nvl = valueDeser.getNullValue(ctxt);
if (nvl != null) {
builder.put(fieldName, nvl);
builder.put(key, nvl);
}
}
}

0 comments on commit aa4f125

Please sign in to comment.