Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit dc22658

Browse files
committed
Add NSNull check in setSystemChromeSystemUIOverlayStyle
1 parent 35ab2a7 commit dc22658

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)