mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-30 00:02:47 +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
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue