Skip to content

Conversation

@bkonyi
Copy link
Contributor

@bkonyi bkonyi commented Mar 15, 2024

The Storage interface already specifies that the return type should be nullable, but ServerConnectionStorage further restricted it to be non-nullable. If a key was looked up and it did not have an entry in storage, this would cause a type error and cause DevTools to hang on start in some situations.

Fixes #7373

FYI @eliasyishak

The `Storage` interface already specifies that the return type should be
nullable, but `ServerConnectionStorage` further restricted it to be
non-nullable. If a key was looked up and it did not have an entry in
storage, this would cause a type error and cause DevTools to hang on
start in some situations.

Fixes flutter#7373
@bkonyi bkonyi requested a review from a team as a code owner March 15, 2024 17:05
@bkonyi bkonyi requested review from kenzieschmoll and polina-c and removed request for a team March 15, 2024 17:05
@bkonyi bkonyi merged commit 5d1665d into flutter:master Mar 18, 2024
@bkonyi bkonyi deleted the fix_null_exception_get_preferences branch March 18, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running devtools_tool serve doesn't work

2 participants