瀏覽代碼

fix crash when urlPath is nil

Tobias Conradi 9 年之前
父節點
當前提交
5c69e3922d
共有 1 個文件被更改,包括 3 次插入1 次删除
  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"];
         }