Closed ewanmellor closed 4 years ago
Fix a crash when the user uses the New from Clipboard command and the clipboard does not contain text. In this case, NSPasteboard.stringForType returns nil, and we were crashing inside Position::is_valid_fen with a null pointer.
Show an NSAlert in this case instead.
Fix a crash when the user uses the New from Clipboard command and the clipboard does not contain text. In this case, NSPasteboard.stringForType returns nil, and we were crashing inside Position::is_valid_fen with a null pointer.
Show an NSAlert in this case instead.