Commit 232f6b69 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

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

parent c88e1ff9
......@@ -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"];
Supports Markdown
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