From 88f2dfc338bf5f6ecba3adeef1f55765d94f3ea4 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Mon, 9 Jun 2025 23:55:38 -0700 Subject: [PATCH] Bug Check: Return silence instead of null URL This is technically an error condition, but handle it in a non-crashy way. Signed-off-by: Christopher Snowhill --- Playlist/PlaylistEntry.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Playlist/PlaylistEntry.m b/Playlist/PlaylistEntry.m index d09a1e995..574f9f448 100644 --- a/Playlist/PlaylistEntry.m +++ b/Playlist/PlaylistEntry.m @@ -399,7 +399,7 @@ extern NSMutableDictionary *kArtworkDictionary; NSURL *_Nullable urlForPath(NSString *_Nullable path) { if(!path || ![path length]) { - return nil; + return [NSURL URLWithString:@"silence://10"]; } NSRange protocolRange = [path rangeOfString:@"://"];