From 4f3ad2382b0fd6d03990dc57e9589cd45bef2187 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Thu, 10 Oct 2024 08:16:44 +0200 Subject: [PATCH] Fix crash after removing an account --- Classes/LinphoneManager.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 06b5a1bbf..64551f7a4 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -2259,6 +2259,8 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) { NSString *filter = @"*"; if ([self lpConfigBoolForKey:@"contact_filter_on_default_domain"]) { LinphoneAccount *account = linphone_core_get_default_account(theLinphoneCore); + if (!account) + return filter; LinphoneAccountParams const *accountParams = linphone_account_get_params(account); if (account && linphone_account_params_get_server_addr(accountParams)) { return [NSString stringWithCString:linphone_account_params_get_domain(accountParams)