Browse Source

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

Felix Paul Kühne 10 years ago
parent
commit
232f6b693c
1 changed files with 1 additions and 1 deletions
  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"];