Skip to content

Commit 13b59b9

Browse files
committed
Fixed to respect the nullValueProvider set on the property
fixes #876
1 parent 9d4ad6a commit 13b59b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinValueInstantiator.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ internal class KotlinValueInstantiator(
7979
paramType.isMarkedNullable -> null
8080
// Primitive types always try to get from a buffer, considering several settings
8181
jsonProp.type.isPrimitive -> buffer.getParameter(jsonProp)
82-
// to get suitable "missing" value provided by deserializer
83-
else -> valueDeserializer?.getAbsentValue(ctxt)
82+
// to get suitable "missing" value provided by nullValueProvider
83+
else -> jsonProp.nullValueProvider?.getAbsentValue(ctxt)
8484
}
8585
}
8686

0 commit comments

Comments
 (0)