From b9d0c9927646c828e290b27dd5e5a02870959163 Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Wed, 3 Jul 2024 09:34:21 +0200 Subject: [PATCH] fix crash when error on account --- Linphone/model/tool/ToolModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linphone/model/tool/ToolModel.cpp b/Linphone/model/tool/ToolModel.cpp index 909ec3a6..81d6d243 100644 --- a/Linphone/model/tool/ToolModel.cpp +++ b/Linphone/model/tool/ToolModel.cpp @@ -192,7 +192,7 @@ bool ToolModel::createCall(const QString &sipAddress, std::shared_ptr ToolModel::findAccount(const std::shared_ptr &address) { std::shared_ptr account; for (auto item : CoreModel::getInstance()->getCore()->getAccountList()) { - if (item->getContactAddress()->weakEqual(address)) { + if (item->getContactAddress() && item->getContactAddress()->weakEqual(address)) { account = item; break; }