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

Guava collection types do not allow null values #52

Merged
merged 1 commit into from
Sep 14, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}

}
}