mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Do not call handler blocks if they are nil
This commit is contained in:
parent
e68b97d58b
commit
5b151c5fa0
12 changed files with 32 additions and 33 deletions
|
@ -526,11 +526,7 @@ static NSArray *empty = nil;
|
|||
internal->finished = YES;
|
||||
[self didChangeValueForKey: @"isFinished"];
|
||||
}
|
||||
if (NULL != internal->completionBlock)
|
||||
{
|
||||
CALL_BLOCK_NO_ARGS(
|
||||
((GSOperationCompletionBlock)internal->completionBlock));
|
||||
}
|
||||
CALL_BLOCK_NO_ARGS(((GSOperationCompletionBlock)internal->completionBlock));
|
||||
}
|
||||
[internal->lock unlock];
|
||||
}
|
||||
|
@ -584,7 +580,7 @@ static NSArray *empty = nil;
|
|||
|
||||
while ((theBlock = (GSBlockOperationBlock)[en nextObject]) != NULL)
|
||||
{
|
||||
CALL_BLOCK_NO_ARGS(theBlock);
|
||||
CALL_NON_NULL_BLOCK_NO_ARGS(theBlock);
|
||||
}
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue