Skip to content

Commit 6e780fd

Browse files
NikoYuwonochinmaygarde
authored andcommitted
Add NSNull check in setSystemChromeSystemUIOverlayStyle (flutter#6011)
1 parent 7ec5f8a commit 6e780fd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ - (void)setSystemChromeEnabledSystemUIOverlays:(NSArray*)overlays {
140140

141141
- (void)setSystemChromeSystemUIOverlayStyle:(NSDictionary*)message {
142142
NSString* style = message[@"statusBarBrightness"];
143+
if (style == (id)[NSNull null])
144+
return;
145+
143146
UIStatusBarStyle statusBarStyle;
144147
if ([style isEqualToString:@"Brightness.dark"])
145148
statusBarStyle = UIStatusBarStyleLightContent;

0 commit comments

Comments
 (0)