Marino Faggiana 6 年之前
父节点
当前提交
435cab425e
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      iOSClient/Main/NCMainCommon.swift

+ 9 - 1
iOSClient/Main/NCMainCommon.swift

@@ -439,7 +439,15 @@ class NCMainCommon: NSObject {
         }
         }
     }
     }
     
     
-    @objc func getMetadataFromSectionDataSourceIndexPath(_ indexPath: IndexPath, sectionDataSource: CCSectionDataSourceMetadata) -> tableMetadata? {
+    @objc func getMetadataFromSectionDataSourceIndexPath(_ indexPath: IndexPath?, sectionDataSource: CCSectionDataSourceMetadata?) -> tableMetadata? {
+        
+        guard let indexPath = indexPath else {
+            return nil
+        }
+        
+        guard let sectionDataSource = sectionDataSource else {
+            return nil
+        }
         
         
         let section = indexPath.section + 1
         let section = indexPath.section + 1
         let row = indexPath.row + 1
         let row = indexPath.row + 1