Jelajahi Sumber

Bugfix [Crash V 1.14,15]

Marino Faggiana 8 tahun lalu
induk
melakukan
e0b6e41fc1
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      iOSClient/Main/CCDetail.m

+ 4 - 0
iOSClient/Main/CCDetail.m

@@ -807,6 +807,10 @@
 {
     NSString *fileID = [[notification.userInfo allKeys] objectAtIndex:0];
     //NSDate *date = [[notification.userInfo allValues] objectAtIndex:0];
+ 
+    // test [Chrash V 1.14,15]
+    if (self.indexNowVisible >= [self.photos count])
+        return;
     
     dispatch_async(dispatch_get_main_queue(), ^{