Skip to content

Commit cb75ff1

Browse files
committed
fix null check error
1 parent 221dadd commit cb75ff1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flutter/lib/src/widgets_binding_observer.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ class SentryWidgetsBindingObserver with WidgetsBindingObserver {
5555
.listen(_onScreenSizeChanged);
5656

5757
final views =
58-
_options.bindingUtils.instance!.platformDispatcher.views.toList();
58+
_options.bindingUtils.instance?.platformDispatcher.views.toList() ??
59+
[];
5960
_screenSizeStreamController.add(views);
6061
}
6162
}

0 commit comments

Comments
 (0)