Parcourir la source

BUG dictionaryFileIDMetadataForIndexPath

Marino Faggiana il y a 8 ans
Parent
commit
597bbd2938
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      iOSClient/Main/CCSection.m

+ 2 - 1
iOSClient/Main/CCSection.m

@@ -149,7 +149,8 @@
             [sectionDataSource.sectionArrayRow setObject:metadatas forKey:dataSection];
         }
 
-        [dictionaryFileIDMetadataForIndexPath setObject:metadata forKey:metadata.fileID];
+        if (metadata && [metadata.fileID length] > 0)
+            [dictionaryFileIDMetadataForIndexPath setObject:metadata forKey:metadata.fileID];
     }
     
     /*