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
|
@ -148,7 +148,7 @@ GSCompareUsingDescriptorOrComparator(id first, id second, id descOrComp,
|
|||
return [(NSSortDescriptor*)descOrComp compareObject: first
|
||||
toObject: second];
|
||||
case GSComparisonTypeComparatorBlock:
|
||||
return CALL_BLOCK(((NSComparator)descOrComp), first, second);
|
||||
return CALL_NON_NULL_BLOCK(((NSComparator)descOrComp), first, second);
|
||||
|
||||
case GSComparisonTypeFunction:
|
||||
return ((NSInteger (*)(id, id, void *))descOrComp)(first,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue