Bug Fix - App crashes on recents refresh

`[__NSArrayM objectAtIndex:]: index 18446744073709551615 beyond bounds for empty array`
This commit is contained in:
giomfo 2016-11-28 18:28:03 +01:00
parent e36fee814d
commit c130ccf0ca

View file

@ -475,19 +475,31 @@
if (section == favoritesSection)
{
cellData = [favoriteCellDataArray objectAtIndex:row];
if (row < favoriteCellDataArray.count)
{
cellData = [favoriteCellDataArray objectAtIndex:row];
}
}
else if (section== conversationSection)
{
cellData = [conversationCellDataArray objectAtIndex:row];
if (row < conversationCellDataArray.count)
{
cellData = [conversationCellDataArray objectAtIndex:row];
}
}
else if (section == lowPrioritySection)
{
cellData = [lowPriorityCellDataArray objectAtIndex:row];
if (row < lowPriorityCellDataArray.count)
{
cellData = [lowPriorityCellDataArray objectAtIndex:row];
}
}
else if (section == invitesSection)
{
cellData = [invitesCellDataArray objectAtIndex:row];
if (row < invitesCellDataArray.count)
{
cellData = [invitesCellDataArray objectAtIndex:row];
}
}
return cellData;