Skip to content

[flutter_tools] make expando on vm service null safe to handle web stuff - #59624

Merged
fluttergithubbot merged 2 commits into
flutter:masterfrom
jonahwilliams:fix_vm_service_expando_issue
Jun 18, 2020
Merged

fluttergithubbot merged 2 commits into
flutter:masterfrom
jonahwilliams:fix_vm_service_expando_issue

Conversation

@jonahwilliams

@jonahwilliams jonahwilliams commented Jun 17, 2020 •

Copy link
Copy Markdown
Contributor

Description

Fixes #59606

null check on the extension method (because its a static method, so this can be null - NNBD when). The vm service will be null when running on the web - the devtools logic needs to be slightly tweaked here, but that fix is potentially riskier so easier to stop the crash for now

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jun 17, 2020
@jonahwilliams jonahwilliams changed the title [flutter_tools] make expando on vm service null safe, handle web stuff [flutter_tools] make expando on vm service null safe to handle web stuff Jun 17, 2020
@jonahwilliams
jonahwilliams requested a review from jmagman June 17, 2020 02:04

@jmagman jmagman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it concerning these were null?

@jonahwilliams

Copy link
Copy Markdown
Contributor Author

No, that is expected for the web still. The fix is a bit more involved there, but only for launching devtools

@fluttergithubbot
fluttergithubbot merged commit 719ea5a into flutter:master Jun 18, 2020
zljj0818 pushed a commit to zljj0818/flutter that referenced this pull request Jun 22, 2020
mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crashes due to null vmservice

4 participants