Skip to content
Snippets Groups Projects
Commit e73a84be authored by George Nachman's avatar George Nachman
Browse files

Fix an assertion when generalPasteboard returns nil

parent 1e5564f7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -64,7 +64,10 @@
NSPasteboard *board;
 
board = [NSPasteboard generalPasteboard];
assert(board != nil);
if (!board) {
DLog(@"Failed to get the general pasteboard!");
return nil;
}
 
NSArray *supportedTypes = @[ NSFilenamesPboardType, NSStringPboardType ];
NSString *bestType = [board availableTypeFromArray:supportedTypes];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment