iOS: deal with context nil caused array init crash

This commit is contained in:
王劲鹏 2021-01-23 15:42:21 +08:00 committed by osborn
parent 510cdf53cb
commit 13453f6a30

View File

@ -58,6 +58,9 @@ - (void)resolve:(id)result {
- (void)reject:(id)result {
__weak typeof(self) __self = self;
if (self.context == nil) {
return;
}
[[self.context.driver invokeDoricMethod:DORIC_BRIDGE_REJECT
argumentsArray:result
? @[self.context.contextId, self.callbackId, result]