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; }