Don't beginUpdates/endUpdates on cell relayout if data source is gone (#2248)

This commit is contained in:
Adlai Holler 2016-09-14 16:21:05 -07:00 committed by GitHub
parent c7b290e4cb
commit d1d25a770c

View File

@ -1164,7 +1164,7 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
- (void)didLayoutSubviewsOfTableViewCell:(_ASTableViewCell *)tableViewCell
{
ASCellNode *node = tableViewCell.node;
if (node == nil) {
if (node == nil || _asyncDataSource == nil) {
return;
}