Commit 9fabea7a authored by Felix Paul Kühne's avatar Felix Paul Kühne

library: fix runtime exception

parent 15c18c22
......@@ -587,13 +587,11 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
NSInteger row = indexPath.row;
if (tableView == self.searchDisplayController.searchResultsTableView) {
if (row >= _searchData.count)
return nil;
cell.mediaObject = _searchData[row];
if (row < _searchData.count)
cell.mediaObject = _searchData[row];
} else {
if (row >= _foundMedia.count)
return nil;
cell.mediaObject = _foundMedia[row];
if (row < _foundMedia.count)
cell.mediaObject = _foundMedia[row];
}
}
......
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