mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-06 13:12:49 +00:00
Check array size before accessing section - rare crash for improper data source use, de-escalated to messaging nil.
This commit is contained in:
@@ -900,7 +900,8 @@ static void *kASSizingQueueContext = &kASSizingQueueContext;
|
||||
- (NSUInteger)numberOfRowsInSection:(NSUInteger)section
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
return [[self completedNodes][section] count];
|
||||
NSArray *completedNodes = [self completedNodes];
|
||||
return (section < completedNodes.count) ? [completedNodes[section] count] : 0;
|
||||
}
|
||||
|
||||
- (ASCellNode *)nodeAtIndexPath:(NSIndexPath *)indexPath
|
||||
|
||||
Reference in New Issue
Block a user