Repository navigation
[pigeon] let Java FlutterApis be invoked with null callbacks #58913
Copy link
Copy link
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectp: pigeonrelated to pigeon messaging codegen toolrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team
Description
Activity
- addedpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
on Jun 7, 2020 - addedp: pigeonrelated to pigeon messaging codegen toolrelated to pigeon messaging codegen tool
on Jun 8, 2020 What would be even better is if instead of null, you add overload method that just omits the callback.
@gaaclarke I don't think this ticket is relevant to the flutter/packages#222
This ticket is for the native APIs (such as Java APIs)
Sorry, keeping the languages straight has been a problem for me. Thanks for the heads up. I'll update the title.
- changed the title
[-][pigeon] let FlutterApis be invoked with null callbacks[/-][+][pigeon] let Java FlutterApis be invoked with null callbacks[/+]on Oct 12, 2020 - added 2 commits that reference this issue
on Mar 1, 2021 Was this fixed by flutter/packages#214?
Was this fixed by flutter/packages#214?
Nope, you still have to provide a callback.
- addedP3Issues that are less important to the Flutter projectIssues that are less important to the Flutter project
on Nov 4, 2021 - addedteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team
on Jul 8, 2023 - added a commit that references this issue
on Jun 10, 2026
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectp: pigeonrelated to pigeon messaging codegen toolrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team
I had IDL with
it created Java code
but if I don't care about the result, I can't pass null to callback since it doesn't null check and can crash.
cc @gaaclarke