-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[flutter_tools] fix cast error when dart-defines-json file includes null #128909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flutter_tools] fix cast error when dart-defines-json file includes null #128909
Conversation
| Map<String, String> toEnvironmentConfig() { | ||
| final Map<String, String> map = <String, String>{}; | ||
| dartDefineConfigJsonMap?.forEach((String key, Object value) { | ||
| dartDefineConfigJsonMap.forEach((String key, Object? value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to perform any null checks here for value? Or will it just get added as 'null'?
Seems like that is the intention based on the linked issue but just wanted to double check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will get added as null, as we can see in the updated test.
eliasyishak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
|
auto label is removed for flutter/flutter, pr: 128909, due to - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
Fixes #128787