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

Fix runtime exception

(cherry picked from commit 88c0879e)
parent 35b1aafd
......@@ -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)
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