mirror of
https://github.com/zhigang1992/expo.git
synced 2026-04-29 09:56:11 +08:00
Catch nil linking URI before crashing
probably resolves https://fabric.io/exponent2/ios/apps/host.exp.exponent/issues/5a04de0661b02d480d18a33b fbshipit-source-id: ad1f8fc
This commit is contained in:
committed by
Exponent GitHub Bot
parent
e16ba23995
commit
d27395a966
@@ -174,6 +174,9 @@ NSNotificationName kEXKernelRefreshForegroundTaskNotification = @"EXKernelRefres
|
||||
+ (NSString *)linkingUriForExperienceUri:(NSURL *)uri
|
||||
{
|
||||
uri = [self uriTransformedForLinking:uri isUniversalLink:NO];
|
||||
if (!uri) {
|
||||
return nil;
|
||||
}
|
||||
NSURLComponents *components = [NSURLComponents componentsWithURL:uri resolvingAgainstBaseURL:YES];
|
||||
|
||||
// if the provided uri is the shell app manifest uri,
|
||||
|
||||
Reference in New Issue
Block a user