-
Notifications
You must be signed in to change notification settings - Fork 30.2k
_CastError: Null check operator used on a null value when resuming an app from the background #100778
Copy link
Copy link
Closed
Labels
in triagePresently being triaged by the triage teamPresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Description
Steps to Reproduce
This is an automated anonymous crash report.
According to breadcrumbs, it happened 2 seconds after resuming an app from the background.
Expected results:
No exception is thrown.
Actual results:
_CastError: Null check operator used on a null value
File "framework.dart", line 3087, in Element.widget
File "framework.dart", line 4929, in ProxyElement.widget
File "framework.dart", line 5036, in InheritedElement.widget
File "framework.dart", line 4014, in Element.dependOnInheritedElement
File "framework.dart", line 4886, in StatefulElement.dependOnInheritedElement
File "framework.dart", line 4022, in Element.dependOnInheritedWidgetOfExactType
File "media_query.dart", line 870, in MediaQuery.maybeOf
File "ink_well.dart", line 1059, in _InkResponseState._canRequestFocus
File "ink_well.dart", line 1093, in _InkResponseState.build
File "framework.dart", line 4705, in StatefulElement.build
File "framework.dart", line 4588, in ComponentElement.performRebuild
File "framework.dart", line 4763, in StatefulElement.performRebuild
File "framework.dart", line 4311, in Element.rebuild
File "framework.dart", line 2578, in BuildOwner.buildScope
File "binding.dart", line 882, in WidgetsBinding.drawFrame
File "binding.dart", line 363, in RendererBinding._handlePersistentFrameCallback
File "binding.dart", line 1145, in SchedulerBinding._invokeFrameCallback
File "binding.dart", line 1082, in SchedulerBinding.handleDrawFrame
File "binding.dart", line 996, in SchedulerBinding._handleDrawFrame
File "zone.dart", line 1428, in _rootRun
File "zone.dart", line 1328, in _CustomZone.run
File "zone.dart", line 1236, in _CustomZone.runGuarded
File "hooks.dart", line 150, in _invoke
File "platform_dispatcher.dart", line 270, in PlatformDispatcher._drawFrame
File "hooks.dart", line 114, in _drawFrame
Code sample
No app code is involved. Check `Element` in this repo.Logs
No issues found!
App was built on CI, some time ago, so I could not execute shell commands. However, here is the relevant part of the log which is available:
Flutter 2.8.1 • channel unknown • unknown source
Framework • revision 77d935af4d (3 months ago) • 2021-12-16 08:37:33 -0800
Engine • revision 890a5fca2e
Tools • Dart 2.15.1
Device: Huawei VOG-L29
Android 10
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
in triagePresently being triaged by the triage teamPresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds