Fix crash when Quitting without active track set.
parent
0a99093af0
commit
c192fb5c41
|
@ -108,6 +108,8 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response
|
||||||
- (NSDictionary *)fillNotificationDictionary:(PlaylistEntry *)pe status:(TrackStatus)status
|
- (NSDictionary *)fillNotificationDictionary:(PlaylistEntry *)pe status:(TrackStatus)status
|
||||||
{
|
{
|
||||||
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
|
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
|
||||||
|
if (pe == nil)
|
||||||
|
return dict;
|
||||||
|
|
||||||
[dict setObject:[[pe URL] absoluteString] forKey:TrackPath];
|
[dict setObject:[[pe URL] absoluteString] forKey:TrackPath];
|
||||||
if ([pe title]) [dict setObject:[pe title] forKey:TrackTitle];
|
if ([pe title]) [dict setObject:[pe title] forKey:TrackTitle];
|
||||||
|
|
Loading…
Reference in New Issue