Marino Faggiana %!s(int64=7) %!d(string=hai) anos
pai
achega
fc347b99f3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      iOSClient/Main/CCMain.m

+ 2 - 1
iOSClient/Main/CCMain.m

@@ -4539,7 +4539,8 @@
     [_statusSwipeCell removeAllObjects];
     for (MGSwipeTableCell *cell in self.tableView.visibleCells) {
         NSIndexPath *indexPath = [self.tableView indexPathForCell:cell];
-        [_statusSwipeCell setObject:[NSNumber numberWithDouble:cell.swipeOffset] forKey:indexPath];
+        if (cell != nil && indexPath != nil)
+            [_statusSwipeCell setObject:[NSNumber numberWithDouble:cell.swipeOffset] forKey:indexPath];
     }
     
     // reload table view