Explorar el Código

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

Felix Paul Kühne hace 10 años
padre
commit
232f6b693c
Se han modificado 1 ficheros con 1 adiciones y 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"];