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

Commit

Permalink
Update GuavaImmutableMapDeserializer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
josethomas committed Nov 6, 2014
1 parent 7490d9e commit 2eed9b5
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 2eed9b5

Please sign in to comment.