Quellcode durchsuchen

fix crash when urlPath is nil

Tobias Conradi vor 9 Jahren
Ursprung
Commit
5c69e3922d
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      SharedSources/ServerBrowsing/Plex/VLCNetworkServerBrowserPlex.m

+ 3 - 1
SharedSources/ServerBrowsing/Plex/VLCNetworkServerBrowserPlex.m

@@ -171,7 +171,9 @@
             } else {
                 keyPath = keyValue;
             }
-            urlPath = [baseURL URLByAppendingPathComponent:keyPath].absoluteString;
+            if (keyPath) {
+                urlPath = [baseURL URLByAppendingPathComponent:keyPath].absoluteString;
+            }
         } else {
             urlPath = dictionary[@"keyMedia"];
         }