Context
A .transform returns either a null or a value.
Using .onItem().ifNotNull().call { entity -> gives a nullable entity and kotlin complains.
Description
ifNotNull offers a nullable receiver. Kotlin complains and wants a null-check.
Additional details
Using Java 18.0.1, Kotlin 1.6.10 and Quarkus 2.8.1.Final
Context
A
.transformreturns either a null or a value.Using
.onItem().ifNotNull().call { entity ->gives a nullableentityand kotlin complains.Description
ifNotNulloffers a nullable receiver. Kotlin complains and wants a null-check.Additional details
Using Java 18.0.1, Kotlin 1.6.10 and Quarkus 2.8.1.Final