From b95587069787b8e2b4e59660e03253571221c7a3 Mon Sep 17 00:00:00 2001 From: Brieuc Viel Date: Thu, 11 Jan 2018 15:11:05 +0100 Subject: [PATCH] [CallKit] fix callKit_call linphone_core_get_call list null --- Classes/LinphoneManager.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 8ec77bd14..a6f68c166 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -885,7 +885,9 @@ static void linphone_iphone_display_status(struct _LinphoneCore *lc, const char : @""; NSUUID *uuid = (NSUUID *)[self.providerDelegate.uuids objectForKey:callId2]; if (uuid) { - LinphoneCall *callKit_call = (LinphoneCall *)linphone_core_get_calls(LC)->data; + LinphoneCall *callKit_call = (LinphoneCall *)linphone_core_get_calls(LC) + ? linphone_core_get_calls(LC)->data + : NULL; const char *callKit_callId = callKit_call ? linphone_call_log_get_call_id(linphone_call_get_call_log(callKit_call)) : NULL;