Explorar o código

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

Felix Paul Kühne %!s(int64=10) %!d(string=hai) anos
pai
achega
232f6b693c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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"];