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

Fix runtime exception

(cherry picked from commit b4692d53)
parent d092b7ce
......@@ -777,7 +777,10 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
- (UICollectionViewCell*)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
VLCPlaylistCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"PlaylistCell" forIndexPath:indexPath];
cell.mediaObject = _foundMedia[indexPath.row];
NSUInteger row = indexPath.row;
if (row < _foundMedia.count)
cell.mediaObject = _foundMedia[row];
cell.collectionView = _collectionView;
[cell setEditing:self.editing animated: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