Commit 909566ab authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

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

(cherry picked from commit 232f6b69)
parent 3334d947
......@@ -83,7 +83,7 @@
self.view.backgroundColor = [UIColor VLCDarkBackgroundColor];
NSString *titleValue;
if ([_PlexServerPath isEqualToString:@""])
if ([_PlexServerPath isEqualToString:@""] || _mutableObjectList.count == 0)
titleValue = _PlexServerName;
titleValue = [_mutableObjectList[0] objectForKey:@"libTitle"];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment