From 2eed9b584424f1b3ddfd6b7c6d962cd3ef6cf1dc Mon Sep 17 00:00:00 2001 From: josethomas Date: Wed, 5 Nov 2014 21:23:11 -0800 Subject: [PATCH] Update GuavaImmutableMapDeserializer.java --- .../datatype/guava/deser/GuavaImmutableMapDeserializer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/fasterxml/jackson/datatype/guava/deser/GuavaImmutableMapDeserializer.java b/src/main/java/com/fasterxml/jackson/datatype/guava/deser/GuavaImmutableMapDeserializer.java index 95d4c7b..3a8dfc2 100644 --- a/src/main/java/com/fasterxml/jackson/datatype/guava/deser/GuavaImmutableMapDeserializer.java +++ b/src/main/java/com/fasterxml/jackson/datatype/guava/deser/GuavaImmutableMapDeserializer.java @@ -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. @@ -54,4 +56,4 @@ protected T _deserializeEntries(JsonParser jp, DeserializationContext ctxt) thro return map; } -} \ No newline at end of file +}