From d9fd2569bb99e90fefd1039b7cdf2c3ec163ed88 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Mon, 4 Jun 2018 15:34:08 +0200 Subject: [PATCH] fix crash --- Classes/ChatConversationCreateTableView.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Classes/ChatConversationCreateTableView.m b/Classes/ChatConversationCreateTableView.m index 1f69cfe82..cc1fb0e0d 100644 --- a/Classes/ChatConversationCreateTableView.m +++ b/Classes/ChatConversationCreateTableView.m @@ -86,6 +86,12 @@ const char *normalizedPhoneNumber = linphone_proxy_config_normalize_phone_number(cfg, phoneNumber); addr = linphone_proxy_config_normalize_sip_uri(cfg, normalizedPhoneNumber); } + + if (!addr) { + results = results->next; + continue; + } + char *uri = linphone_address_as_string_uri_only(addr); NSString *address = [NSString stringWithUTF8String:uri]; ms_free(uri);