Skip to content

Commit 4d3ae9c

Browse files
committed
Merge pull request #4651 from /issues/4650-crash-reloading-rows
Reader: Adds nil check before reloading row for updated attachments.
2 parents 4124e37 + d5a1034 commit 4d3ae9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

WordPress/Classes/ViewRelated/Reader/ReaderCommentsViewController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,10 @@ - (void)commentView:(CommentContentView *)commentView updatedAttachmentViewsForP
11241124
{
11251125
Comment *comment = (Comment *)contentProvider;
11261126
NSIndexPath *indexPath = [self.tableViewHandler.resultsController indexPathForObject:comment];
1127+
if (!indexPath) {
1128+
return;
1129+
}
1130+
11271131
[self.tableViewHandler invalidateCachedRowHeightAtIndexPath:indexPath];
11281132

11291133
// HACK:

0 commit comments

Comments
 (0)