Commit 7367da5a authored by Sylver Bruneau's avatar Sylver Bruneau Committed by Felix Paul Kühne
Browse files

Fix crash when trying to parse non-existing library xmls


Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 40d2df75
......@@ -46,10 +46,11 @@
{
NSMutableArray *mutableObjectList = [[NSMutableArray alloc] init];
mutableObjectList = [self VLCLibraryServerParser:adress port:port];
NSString *identifier = [[mutableObjectList objectAtIndex:0] objectForKey:@"identifier"];
if ([identifier isEqualToString:@"org.videolan.vlc-ios"])
return YES;
if (mutableObjectList.count > 0) {
NSString *identifier = [[mutableObjectList objectAtIndex:0] objectForKey:@"identifier"];
if ([identifier isEqualToString:@"org.videolan.vlc-ios"])
return YES;
}
return NO;
}
......
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