iOS: deal with context nil caused array init crash
This commit is contained in:
parent
510cdf53cb
commit
13453f6a30
@ -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]
|
||||
|
Reference in New Issue
Block a user