Do not call handler blocks if they are nil

This commit is contained in:
Levin Li 2021-11-17 21:35:49 +08:00 committed by Levin Li
parent e68b97d58b
commit 5b151c5fa0
12 changed files with 32 additions and 33 deletions

View file

@ -2718,7 +2718,7 @@ GSICUStringMatchesRegex(NSString *string, NSString *regex, NSStringCompareOption
substitutionVariables: (GS_GENERIC_CLASS(NSDictionary,
NSString*,id)*)variables
{
return CALL_BLOCK(_block, object, variables);
return CALL_NON_NULL_BLOCK(_block, object, variables);
}
- (BOOL) evaluateWithObject: (id)object