diff --git a/Application/PlaybackController.m b/Application/PlaybackController.m index 8a39c2544..ea3f5fbaf 100644 --- a/Application/PlaybackController.m +++ b/Application/PlaybackController.m @@ -285,11 +285,14 @@ NSDictionary *makeRGInfo(PlaylistEntry *pe) { } - (IBAction)spam:(id)sender { - NSPasteboard *pboard = [NSPasteboard generalPasteboard]; + PlaylistEntry *pe = [playlistController currentEntry]; + if(pe) { + NSPasteboard *pboard = [NSPasteboard generalPasteboard]; - [pboard clearContents]; + [pboard clearContents]; - [pboard writeObjects:@[[[playlistController currentEntry] spam]]]; + [pboard writeObjects:@[[pe spam]]]; + } } - (IBAction)eventSeekForward:(id)sender {