mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-30 08:12:40 +00:00
Bug Fix - App crashes on recents refresh
`[__NSArrayM objectAtIndex:]: index 18446744073709551615 beyond bounds for empty array`
This commit is contained in:
parent
e36fee814d
commit
c130ccf0ca
1 changed files with 16 additions and 4 deletions
|
@ -474,21 +474,33 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (section == favoritesSection)
|
if (section == favoritesSection)
|
||||||
|
{
|
||||||
|
if (row < favoriteCellDataArray.count)
|
||||||
{
|
{
|
||||||
cellData = [favoriteCellDataArray objectAtIndex:row];
|
cellData = [favoriteCellDataArray objectAtIndex:row];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (section== conversationSection)
|
else if (section== conversationSection)
|
||||||
|
{
|
||||||
|
if (row < conversationCellDataArray.count)
|
||||||
{
|
{
|
||||||
cellData = [conversationCellDataArray objectAtIndex:row];
|
cellData = [conversationCellDataArray objectAtIndex:row];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (section == lowPrioritySection)
|
else if (section == lowPrioritySection)
|
||||||
|
{
|
||||||
|
if (row < lowPriorityCellDataArray.count)
|
||||||
{
|
{
|
||||||
cellData = [lowPriorityCellDataArray objectAtIndex:row];
|
cellData = [lowPriorityCellDataArray objectAtIndex:row];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (section == invitesSection)
|
else if (section == invitesSection)
|
||||||
|
{
|
||||||
|
if (row < invitesCellDataArray.count)
|
||||||
{
|
{
|
||||||
cellData = [invitesCellDataArray objectAtIndex:row];
|
cellData = [invitesCellDataArray objectAtIndex:row];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return cellData;
|
return cellData;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue