From 892568afd70e47d1df05d8243cd3979e846d6710 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Thu, 31 May 2018 11:14:42 +0200 Subject: [PATCH] fix crash when creating a chat room --- Classes/ChatConversationCreateTableView.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/ChatConversationCreateTableView.m b/Classes/ChatConversationCreateTableView.m index 2d2773997..1f69cfe82 100644 --- a/Classes/ChatConversationCreateTableView.m +++ b/Classes/ChatConversationCreateTableView.m @@ -77,8 +77,10 @@ const char *phoneNumber = NULL; if (!addr) { phoneNumber = linphone_search_result_get_phone_number(result); - if (!phoneNumber) + if (!phoneNumber) { + results = results->next; continue; + } LinphoneProxyConfig *cfg = linphone_core_get_default_proxy_config(LC); const char *normalizedPhoneNumber = linphone_proxy_config_normalize_phone_number(cfg, phoneNumber);