From c192fb5c411a0b67c1ebc40dbf6e09b3ebab8a9e Mon Sep 17 00:00:00 2001 From: Dzmitry Neviadomski Date: Thu, 7 Jan 2021 01:40:49 +0300 Subject: [PATCH] Fix crash when Quitting without active track set. --- Application/PlaybackEventController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Application/PlaybackEventController.m b/Application/PlaybackEventController.m index 26819f3fd..64f02741e 100644 --- a/Application/PlaybackEventController.m +++ b/Application/PlaybackEventController.m @@ -108,6 +108,8 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response - (NSDictionary *)fillNotificationDictionary:(PlaylistEntry *)pe status:(TrackStatus)status { NSMutableDictionary *dict = [NSMutableDictionary dictionary]; + if (pe == nil) + return dict; [dict setObject:[[pe URL] absoluteString] forKey:TrackPath]; if ([pe title]) [dict setObject:[pe title] forKey:TrackTitle];