MESSENGER-5950 be aware of none Matrix erros

This commit is contained in:
Frank Rotermund
2024-04-24 08:04:36 +02:00
parent 21283d0603
commit 2724bb9c83
@@ -1583,7 +1583,11 @@ typedef NS_ENUM (NSUInteger, MXKRoomDataSourceError) {
// Process at least events retrieved from store
[self processQueuedEvents:^(NSUInteger addedHistoryCellNb, NSUInteger addedLiveCellNb) {
[operationErrors addObject:error];
// bwi: #5950 check for nil error, this may happen on none matrix errors while paginating
if (error) {
[operationErrors addObject:error];
}
if (addedHistoryCellNb)
{
addedCellNb += addedHistoryCellNb;