@@ -289,7 +289,9 @@
- (void)triggerProgressTask:(NSNotification *)notification
{
- [[NCMainCommon sharedInstance] triggerProgressTask:notification sectionDataSourceFileIDIndexPath:sectionDataSource.fileIDIndexPath tableView:self.tableView viewController:self serverUrlViewController:self.serverUrl];
+ if (sectionDataSource.fileIDIndexPath != nil) {
+ [[NCMainCommon sharedInstance] triggerProgressTask:notification sectionDataSourceFileIDIndexPath:sectionDataSource.fileIDIndexPath tableView:self.tableView viewController:self serverUrlViewController:self.serverUrl];
+ }
}
- (void)cancelTaskButton:(id)sender withEvent:(UIEvent *)event
@@ -1833,7 +1833,9 @@
@@ -86,8 +86,8 @@ class NCMainCommon: NSObject, PhotoEditorDelegate {
image = "↑"
- cell.labelInfoFile.text = CCUtility.transformedSize(totalBytesExpected) + " - " + image + CCUtility.transformedSize(totalBytes)
- cell.transferButton.progress = progress
+ cell.labelInfoFile?.text = CCUtility.transformedSize(totalBytesExpected) + " - " + image + CCUtility.transformedSize(totalBytes)
+ cell.transferButton?.progress = progress
@@ -150,7 +150,9 @@
- [[NCMainCommon sharedInstance] triggerProgressTask:notification sectionDataSourceFileIDIndexPath:sectionDataSource.fileIDIndexPath tableView:self.tableView viewController:self serverUrlViewController:nil];
+ [[NCMainCommon sharedInstance] triggerProgressTask:notification sectionDataSourceFileIDIndexPath:sectionDataSource.fileIDIndexPath tableView:self.tableView viewController:self serverUrlViewController:nil];