Skip to content

Commit 23050b1

Browse files
committed
Fix null handling
1 parent f04e2f4 commit 23050b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ internal class KotlinValueInstantiator(
3535
private fun List<KTypeProjection>.markedNonNullAt(index: Int) = getOrNull(index)?.type?.isMarkedNullable == false
3636

3737
private fun SettableBeanProperty.skipNulls(): Boolean =
38-
nullIsSameAsDefault || (getAnnotation(JsonSetter::class.java).nulls == Nulls.SKIP)
38+
nullIsSameAsDefault || (getAnnotation(JsonSetter::class.java)?.nulls == Nulls.SKIP)
3939

4040
override fun createFromObjectWith(
4141
ctxt: DeserializationContext,

0 commit comments

Comments
 (0)