From 27f4b8504efabb9b6fa7fe15ff68f00bfd5ce5b4 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 7 Jan 2022 09:16:37 +0200 Subject: [PATCH] Prevent NPE during Kotlin serialization --- .../serialization/KotlinSerializationMessageBodyReader.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/kotlin/serialization/KotlinSerializationMessageBodyReader.kt b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/kotlin/serialization/KotlinSerializationMessageBodyReader.kt index 14096462b0d2d..b5a99f7892b61 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/kotlin/serialization/KotlinSerializationMessageBodyReader.kt +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/kotlin/serialization/KotlinSerializationMessageBodyReader.kt @@ -16,7 +16,7 @@ import javax.ws.rs.core.MediaType import javax.ws.rs.core.MultivaluedMap class KotlinSerializationMessageBodyReader(private val json: Json) : AbstractJsonMessageBodyReader(), ServerMessageBodyReader { - override fun isReadable(type: Class<*>, genericType: Type, annotations: Array, mediaType: MediaType) = + override fun isReadable(type: Class<*>, genericType: Type, annotations: Array?, mediaType: MediaType) = isReadable(mediaType, type) override fun isReadable(type: Class<*>, genericType: Type, lazyMethod: ResteasyReactiveResourceInfo, mediaType: MediaType) =