Skip to content

Wrong nullabilty annotation in the Android embedding #101991

@nt4f04uNd

Description

@nt4f04uNd

flutter/engine#31530 introduced some nullability annotations, and one of them seems wrong to me and when using Kotlin, it breaks the code which is using nulls, because those annotations are enforced by Kotlin compiler.

The value parameter should be @Nullable. The next line that immediately checks for it to be null is an indicator of that.

https://github.com/flutter/engine/blob/135a4b5dce6c2242bfe0a19ed4eca05c000d28f1/shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java#L220

cc @blasten

Metadata

Metadata

Assignees

No one assigned

    Labels

    e: embedderUsers of the Embedder APIengineflutter/engine related. See also e: labels.r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions