Skip to content

Commit

Permalink
Fix a crash when UILaunchStoryboardName is not specified in Info.plist (
Browse files Browse the repository at this point in the history
flutter#6234)

Some developers might prefer launch images.
  • Loading branch information
kangwang1988 authored and jamesderlin committed Sep 13, 2018
1 parent 2a433bc commit 49ef4ad
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ - (UIView*)splashScreenView {
if (_splashScreenView == nullptr) {
NSString* launchStoryboardName =
[[[NSBundle mainBundle] infoDictionary] objectForKey:@"UILaunchStoryboardName"];
if (launchStoryboardName == nil) {
return nil;
}
UIStoryboard* storyboard = [UIStoryboard storyboardWithName:launchStoryboardName bundle:nil];
if (storyboard == nil) {
return nil;
Expand Down

0 comments on commit 49ef4ad

Please sign in to comment.