Skip to content

Kotlin - ifNotNull offers a nullable receiver #901

@MartinX3

Description

@MartinX3

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

Metadata

Metadata

Assignees

Labels

KotlinKotlin support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions