fix crash

This commit is contained in:
Benjamin Reis 2017-10-06 15:35:55 +02:00
parent f25322fdb3
commit ae4576e5e7

View file

@ -69,8 +69,10 @@
[_avatarImage setImage:[UIImage imageNamed:@"chat_group_avatar.png"] bordered:NO withRoundedRadius:YES];
} else {
const LinphoneAddress *addr = linphone_chat_room_get_peer_address(chatRoom);
[ContactDisplay setDisplayNameLabel:_addressLabel forAddress:addr];
[_avatarImage setImage:[FastAddressBook imageForAddress:addr] bordered:NO withRoundedRadius:YES];
if(addr) {
[ContactDisplay setDisplayNameLabel:_addressLabel forAddress:addr];
[_avatarImage setImage:[FastAddressBook imageForAddress:addr] bordered:NO withRoundedRadius:YES];
}
}
LinphoneChatMessage *last_message = linphone_chat_room_get_user_data(chatRoom);