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

fix runtime exception

parent 2e90ee50
......@@ -120,6 +120,10 @@
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self.tableView deselectRowAtIndexPath:indexPath animated:NO];
if (indexPath.row >= _boxController.currentListFiles.count)
return;
_selectedFile = _boxController.currentListFiles[indexPath.row];
if (![_selectedFile.type isEqualToString:@"folder"])
[_boxController streamFile:(BoxFile *)_selectedFile];
......@@ -130,7 +134,6 @@
self.currentPath = [self.currentPath stringByAppendingString:_selectedFile.modelID];
[self _requestInformationForCurrentPath];
}
[self.tableView deselectRowAtIndexPath:indexPath animated:NO];
}
- (void)triggerDownloadForCell:(VLCCloudStorageTableViewCell *)cell
......
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