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

Fix runtime exception

parent 03a07661
......@@ -768,7 +768,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];
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