Explorar el Código

fix crash when urlPath is nil

Tobias Conradi hace 9 años
padre
commit
5c69e3922d

+ 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"];
         }