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

Commit

Permalink
Merge pull request #52 from josethomas/master
Browse files Browse the repository at this point in the history
Guava collection types do not allow null values
  • Loading branch information
cowtowncoder committed Sep 14, 2015
2 parents 2781061 + 2eed9b5 commit e46c441
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ protected T _deserializeEntries(JsonParser jp, DeserializationContext ctxt) thro
} else {
value = valueDes.deserializeWithType(jp, ctxt, typeDeser);
}
builder.put(key, value);
if (null != value) {
builder.put(key, value);
}
}
// No class outside of the package will be able to subclass us,
// and we provide the proper builder for the subclasses we implement.
Expand All @@ -54,4 +56,4 @@ protected T _deserializeEntries(JsonParser jp, DeserializationContext ctxt) thro
return map;
}

}
}

0 comments on commit e46c441

Please sign in to comment.