Fix crash when Quitting without active track set.
This commit is contained in:
parent
0a99093af0
commit
c192fb5c41
1 changed files with 2 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue