mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
Fix potential call of null block
This commit is contained in:
parent
67d27cd453
commit
3477b3f1d9
1 changed files with 6 additions and 2 deletions
|
@ -22,6 +22,7 @@
|
|||
Boston, MA 02110 USA.
|
||||
*/
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "AppKit/NSFontAssetRequest.h"
|
||||
|
||||
@implementation NSFontAssetRequest
|
||||
|
@ -42,10 +43,13 @@
|
|||
return nil; // [NSProgress progressWithTotalUnitCount: 0.0];
|
||||
}
|
||||
|
||||
- (void)downloadFontAssetsWithCompletionHandler: (GSFontAssetCompletionHandler)completionHandler
|
||||
- (void) downloadFontAssetsWithCompletionHandler:
|
||||
(GSFontAssetCompletionHandler)completionHandler
|
||||
{
|
||||
NSError *error = nil;
|
||||
CALL_BLOCK(completionHandler, error);
|
||||
|
||||
NSAssert(completionHandler != nil, NSInvalidArgumentException);
|
||||
CALL_NON_NULL_BLOCK(completionHandler, error);
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue