浏览代码

plex: fix crash if server's library is totally empty

Felix Paul Kühne 10 年之前
父节点
当前提交
232f6b693c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/VLCLocalPlexFolderListViewController.m

+ 1 - 1
Sources/VLCLocalPlexFolderListViewController.m

@@ -83,7 +83,7 @@
     self.view.backgroundColor = [UIColor VLCDarkBackgroundColor];
 
     NSString *titleValue;
-    if ([_PlexServerPath isEqualToString:@""])
+    if ([_PlexServerPath isEqualToString:@""] || _mutableObjectList.count == 0)
         titleValue = _PlexServerName;
     else
         titleValue = [_mutableObjectList[0] objectForKey:@"libTitle"];