Commit 4d8773c
committed
[Impeller] Don't crash if the context is unavailable.
Fixes flutter/flutter#123027.
Turns out, this isn't an issue with back-grounding. This can only happen if the
IO manager is torn down before worker pool has had a chance to process the
decompression job, or if the UI manager was never setup. It is hard to imaging
how this could happen in a real application. If it does though, we should not
crash. This patch makes the change to return an error instead. The linked issue
was a test environment and the failure was addressed in
flutter#40535.1 parent 33fa6eb commit 4d8773c
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
410 | 413 | | |
411 | 414 | | |
412 | 415 | | |
| |||
0 commit comments