Commit 05735603 authored by DanmeiChen's avatar DanmeiChen

fix crash of chatroom creation

parent 73e702c1
......@@ -161,7 +161,12 @@
// Create directly a basic chat room if there's no factory uri
LinphoneAddress *addr = linphone_address_new(cell.addressLabel.text.UTF8String);
[PhoneMainView.instance getOrCreateOneToOneChatRoom:addr waitView:_waitView isEncrypted:_isEncrypted];
if (!addr) {
LOGE(@"Chat room could not be created on server, because null address.");
[ChatConversationInfoView displayCreationError];
} else {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment