mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-29 06:06:52 +08:00
fix(ios): crash fixed,improve stability (#1042)
This commit is contained in:
@@ -451,7 +451,11 @@ HIPPY_EXPORT_METHOD(setContextName:(NSString *)contextName) {
|
||||
}
|
||||
|
||||
- (void)secondBundleLoadCompleted:(BOOL)success {
|
||||
std::shared_ptr<hippy::napi::JSCCtx> context = std::static_pointer_cast<hippy::napi::JSCCtx>(self.pScope->GetContext());
|
||||
std::shared_ptr<Scope> scope = self.pScope;
|
||||
if (!scope) {
|
||||
return;
|
||||
}
|
||||
std::shared_ptr<hippy::napi::JSCCtx> context = std::static_pointer_cast<hippy::napi::JSCCtx>(scope->GetContext());
|
||||
HippyAssert(context != nullptr, @"secondBundleLoadCompleted get null context");
|
||||
if (nullptr == context) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user