Skip to content

setFrameworkHandlesBack NullPointerException #140031

@hello-soon

Description

@hello-soon

Is there an existing issue for this?

Steps to reproduce

image

platformPluginDelegate maybe nullable.
use by PlatformPlugin(@NonNull Activity activity, @NonNull PlatformChannel platformChannel)

in setFrameworkHandlesBack function, it will cause NullPointerException

need check platformPluginDelegate, like popSystemNavigator function, to avoid NullPointerException

Expected results

none

Actual results

none

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

3.16.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions