Skip to content

Commit

Permalink
fix for FasterXML#4575
Browse files Browse the repository at this point in the history
  • Loading branch information
plevart committed Jun 12, 2024
1 parent 883c020 commit 750df82
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ public void serializeWithType(Object value, JsonGenerator gen, SerializerProvide
// 03-Oct-2012, tatu: This is actually unlikely to work ok... but for now,
// let's give it a chance?
Object delegateValue = convertValue(value);
// consider null (to be consistent with serialize method above)
if (delegateValue == null) {
provider.defaultSerializeNull(gen);
return;
}
JsonSerializer<Object> ser = _delegateSerializer;
if (ser == null) {
ser = _findSerializer(value, provider);
Expand Down

0 comments on commit 750df82

Please sign in to comment.