diff --git a/kotlin/tests/src/test/kotlin/com/squareup/moshi/kotlin/reflect/KotlinJsonAdapterTest.kt b/kotlin/tests/src/test/kotlin/com/squareup/moshi/kotlin/reflect/KotlinJsonAdapterTest.kt index 8993837..d15e3c0 100644 --- a/kotlin/tests/src/test/kotlin/com/squareup/moshi/kotlin/reflect/KotlinJsonAdapterTest.kt +++ b/kotlin/tests/src/test/kotlin/com/squareup/moshi/kotlin/reflect/KotlinJsonAdapterTest.kt @@ -943,7 +943,9 @@ class KotlinJsonAdapterTest { } @Test fun adaptersAreNullSafe() { - val moshi = Moshi.Builder().build() + val moshi = Moshi.Builder() + .add(KotlinJsonAdapterFactory()) + .build() val adapter = moshi.adapter(HasNonNullConstructorParameter::class.java) assertThat(adapter.fromJson("null")).isNull() assertThat(adapter.toJson(null)).isEqualTo("null")