|
@@ -5588,6 +5588,9 @@
|
|
// settiamo il record file.
|
|
// settiamo il record file.
|
|
_metadata = [self getMetadataFromSectionDataSource:indexPath];
|
|
_metadata = [self getMetadataFromSectionDataSource:indexPath];
|
|
|
|
|
|
|
|
+ if (!_metadata)
|
|
|
|
+ return;
|
|
|
|
+
|
|
// se non può essere selezionata deseleziona
|
|
// se non può essere selezionata deseleziona
|
|
if ([cell isEditing] == NO)
|
|
if ([cell isEditing] == NO)
|
|
[tableView deselectRowAtIndexPath:indexPath animated:YES];
|
|
[tableView deselectRowAtIndexPath:indexPath animated:YES];
|
|
@@ -5600,10 +5603,6 @@
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- // test crash
|
|
|
|
- NSArray *metadatas = [_sectionDataSource.sectionArrayRow objectForKey:[_sectionDataSource.sections objectAtIndex:indexPath.section]];
|
|
|
|
- if (indexPath.row >= [metadatas count]) return;
|
|
|
|
-
|
|
|
|
NSString *serverUrl = [[NCManageDatabase sharedInstance] getServerUrl:_metadata.directoryID];
|
|
NSString *serverUrl = [[NCManageDatabase sharedInstance] getServerUrl:_metadata.directoryID];
|
|
if (!serverUrl) return;
|
|
if (!serverUrl) return;
|
|
|
|
|