Skip to content

[pigeon] Fix handling of null class args in C++ - #6881

Merged
auto-submit[bot] merged 4 commits into
flutter:mainfrom
stuartmorgan-g:pigeon-cpp-null-class-arg-fix
Jun 7, 2024
Merged

[pigeon] Fix handling of null class args in C++#6881
auto-submit[bot] merged 4 commits into
flutter:mainfrom
stuartmorgan-g:pigeon-cpp-null-class-arg-fix

Conversation

@stuartmorgan-g

Copy link
Copy Markdown
Collaborator

The code generated for Windows (C++) crashes when null is passed for a nullable, class-type parameter to a Pigeon method. This fixes that generation, and adds an integration test covering this case since it was missing from the list of types where we echo a null in integration tests to catch this kind of issue.

Fixesflutter/flutter#149174

Pre-launch Checklist

@tarrinnealtarrinneal added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 7, 2024
@auto-submit
auto-submitBot merged commit 216e464 into flutter:mainJun 7, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 10, 2024
auto-submitBot pushed a commit to flutter/flutter that referenced this pull request Jun 10, 2024
flutter/packages@8a2c4e4...e95fe4a
2024-06-07 engine-flutter-autoroll@skia.org Manual roll Flutter from 4608a89 to fc19ecf (38 revisions) (flutter/packages#6890)
2024-06-07 stuartmorgan@google.com [pigeon] Fix handling of null class args in C++ (flutter/packages#6881)
2024-06-07 eugene.makar@yandex.ru [video_player_android] Migrate ExoPlayer to ExoPlayer-Media3 1.3.1 (flutter/packages#6535)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
The code generated for Windows (C++) crashes when `null` is passed for a nullable, class-type parameter to a Pigeon method. This fixes that generation, and adds an integration test covering this case since it was missing from the list of types where we echo a `null` in integration tests to catch this kind of issue.
Fixesflutter/flutter#149174
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
The code generated for Windows (C++) crashes when `null` is passed for a nullable, class-type parameter to a Pigeon method. This fixes that generation, and adds an integration test covering this case since it was missing from the list of types where we echo a `null` in integration tests to catch this kind of issue.
Fixesflutter/flutter#149174
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmitMerge PR when tree becomes green via auto submit Appp: pigeonplatform-windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[pigeon] C++ generated code doesn't handle null arguments of custom class type

2 participants

@stuartmorgan-g@tarrinneal