Browse Source

Bugfix [Crash V 1.14,15]

Marino Faggiana 8 years ago
parent
commit
e0b6e41fc1
1 changed files with 4 additions and 0 deletions
  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(), ^{