diff --git a/framework/ios/base/bridge/HippyBridge.mm b/framework/ios/base/bridge/HippyBridge.mm index 4f644c7c684..22e30951d91 100644 --- a/framework/ios/base/bridge/HippyBridge.mm +++ b/framework/ios/base/bridge/HippyBridge.mm @@ -558,6 +558,9 @@ - (void)beginLoadingBundle:(NSURL *)bundleURL dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); [strongSelf fetchBundleWithURL:bundleURL completion:^(NSData *source, NSError *error) { __strong __typeof(weakSelf)strongSelf = weakSelf; + if (!strongSelf || !bundleURL) { + return; + } NSDictionary *userInfo; if (error) { HippyBridgeFatal(error, strongSelf);