Browse Source

Improved code

Marino Faggiana 7 years ago
parent
commit
aee5ab5396
1 changed files with 4 additions and 0 deletions
  1. 4 0
      iOSClient/Database/NCManageDatabase.swift

+ 4 - 0
iOSClient/Database/NCManageDatabase.swift

@@ -1158,6 +1158,10 @@ class NCManageDatabase: NSObject {
             return nil
         }
         
+        if metadata.isInvalidated {
+            return nil
+        }
+        
         let directoryID = metadata.directoryID
         let realm = try! Realm()