Parcourir la source

fix RLMQueryUtil.mm line 68

Marino Faggiana il y a 6 ans
Parent
commit
c18753758b
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      iOSClient/Main/CCMain.m

+ 4 - 0
iOSClient/Main/CCMain.m

@@ -3655,6 +3655,10 @@
     
     // Controllo data lettura Data Source
     tableDirectory *tableDirectory = [[NCManageDatabase sharedInstance] getTableDirectoryWithPredicate:[NSPredicate predicateWithFormat:@"account == %@ AND serverUrl == %@", appDelegate.activeAccount, serverUrl]];
+    if (tableDirectory == nil) {
+        return;
+    }
+    
     // Get MetadataFolder
     if ([serverUrl isEqualToString:[CCUtility getHomeServerUrlActiveUrl:appDelegate.activeUrl]])
         _metadataFolder = [[NCManageDatabase sharedInstance] getMetadataWithPredicate:[NSPredicate predicateWithFormat:@"account == %@ AND serverUrl == %@", appDelegate.activeAccount, k_serverUrl_root]];