Commit 88c0879e authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix runtime exception

parent 2a5873b9
......@@ -97,8 +97,12 @@
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
VLCOneDriveObject *selectedObject = _oneDriveController.currentFolder.items[indexPath.row];
NSArray *folderItems = _oneDriveController.currentFolder.items;
NSInteger row = indexPath.row;
if (row >= folderItems.count)
return;
VLCOneDriveObject *selectedObject = folderItems[row];
if (selectedObject.isFolder) {
/* dive into sub folder */
[self.activityIndicator startAnimating];
......
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