Fix crash when Quitting without active track set. #66

Merged
nevack merged 1 commit from nevack/fix-crash into master 2021-01-06 20:23:05 -03:00

View file

@ -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];