mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Check for nil chatroom in ChatConversationView.m::CellForRowAtIndexPath to avoid recurring crashes in background. Temporary fix.
This commit is contained in:
parent
9fcfe2b8de
commit
f3bc7add35
1 changed files with 5 additions and 0 deletions
|
|
@ -1873,6 +1873,11 @@ void on_chat_room_conference_alert(LinphoneChatRoom *cr, const LinphoneEventLog
|
|||
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
UITableViewCell *cell = [[UITableViewCell alloc] init];
|
||||
|
||||
if (!_chatRoom) {
|
||||
// Workaround to avoid crash in background for release 4.7. This shouldn't happen though, so there may be a deeper issue not found yet
|
||||
return cell;
|
||||
}
|
||||
|
||||
int firstIndex = isOneToOne ? 0 : 1;
|
||||
|
||||
if (!isOneToOne && indexPath.row == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue