Commit 0f560bcc authored by Felix Paul Kühne's avatar Felix Paul Kühne

VLCLibraryViewController: fix runtime exception if media is not found

(cherry picked from commit 3ee7d819)
parent 85957019
......@@ -871,9 +871,11 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
}
if (_folderObject != nil) {
//could be NSNotFound
id mediaObject;
NSUInteger folderIndex = [_mediaDataSource indexOfObject:_folderObject];
id mediaObject = [_mediaDataSource objectAtIndex:folderIndex];
if (folderIndex != NSNotFound) {
mediaObject = [_mediaDataSource objectAtIndex:folderIndex];
}
//item got dragged onto item
if ([mediaObject isKindOfClass:[MLFile class]]) {
......
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