diff --git a/doric-iOS/Pod/Classes/Extension/DoricBridgeExtension.m b/doric-iOS/Pod/Classes/Extension/DoricBridgeExtension.m index 4c996108..710ae3e7 100644 --- a/doric-iOS/Pod/Classes/Extension/DoricBridgeExtension.m +++ b/doric-iOS/Pod/Classes/Extension/DoricBridgeExtension.m @@ -89,6 +89,9 @@ - (id)findClass:(Class)clz target:(id)target context:(DoricContext *)context met } [invocation setArgument:&args atIndex:idx]; } + if (!context || context.destroyed) { + return; + } [invocation invoke]; } @catch (NSException *exception) { DoricLog(@"CallNative Error:%@", exception.reason);