Fix crash when pressing tabs

This commit is contained in:
Andy Uhnak
2022-03-17 12:37:42 +00:00
parent f6d8bd1320
commit 3d9a3a2e5b
5 changed files with 25 additions and 8 deletions
+6 -2
View File
@@ -110,9 +110,13 @@
[self.tableViewPaginationThrottler throttle:^{
NSInteger section = indexPath.section;
if (tableView.numberOfSections <= section)
{
return;
}
NSInteger numberOfRowsInSection = [tableView numberOfRowsInSection:section];
if (tableView.numberOfSections > section
&& indexPath.row == numberOfRowsInSection - 1)
if (indexPath.row == numberOfRowsInSection - 1)
{
[self->recentsDataSource paginateInSection:section];
}