From c6b204fc64acd763809c7dde5ca0b885afdf58f0 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 5 Aug 2016 16:38:04 +0200 Subject: [PATCH] =?UTF-8?q?one=20more=20crash=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coreapi/friend.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/friend.c b/coreapi/friend.c index 2ee5a88eb..5abe3dfd7 100644 --- a/coreapi/friend.c +++ b/coreapi/friend.c @@ -1702,6 +1702,7 @@ const char * linphone_friend_phone_number_to_sip_uri(LinphoneFriend *lf, const c } proxy_config = linphone_core_get_default_proxy_config(linphone_friend_get_core(lf)); + if (!proxy_config) return NULL; if (strstr(phone_number, "tel:") == phone_number) phone_number += 4; /* Remove the "tel:" prefix if it is present. */ normalized_number = linphone_proxy_config_normalize_phone_number(proxy_config, phone_number); if (!normalized_number) return NULL;