From 55c623c9a03d934f8f00897c0d4aa2dc95006e3b Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Mon, 13 Jun 2022 01:46:44 -0700 Subject: [PATCH] [Legacy XML Playlist] Fix import if queue missing If there is somehow a legacy XML playlist, and there is no queue entry in the plist, then it should not throw an exception from trying to add a nil object to the return dictionary. Signed-off-by: Christopher Snowhill --- Playlist/XmlContainer.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Playlist/XmlContainer.m b/Playlist/XmlContainer.m index 9cf89e772..df2784477 100644 --- a/Playlist/XmlContainer.m +++ b/Playlist/XmlContainer.m @@ -95,6 +95,7 @@ items = dict[@"items"]; albumArt = dict[@"albumArt"]; queueList = dict[@"queue"]; + if(!queueList) queueList = @[]; } NSMutableArray *entries = [NSMutableArray array];