Skip to content

Commit

Permalink
Prevent NPE during Kotlin serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Jan 7, 2022
1 parent 245a307 commit 27f4b85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import javax.ws.rs.core.MediaType
import javax.ws.rs.core.MultivaluedMap

class KotlinSerializationMessageBodyReader(private val json: Json) : AbstractJsonMessageBodyReader(), ServerMessageBodyReader<Any> {
override fun isReadable(type: Class<*>, genericType: Type, annotations: Array<Annotation>, mediaType: MediaType) =
override fun isReadable(type: Class<*>, genericType: Type, annotations: Array<Annotation>?, mediaType: MediaType) =
isReadable(mediaType, type)

override fun isReadable(type: Class<*>, genericType: Type, lazyMethod: ResteasyReactiveResourceInfo, mediaType: MediaType) =
Expand Down

0 comments on commit 27f4b85

Please sign in to comment.