From 6d957a2884b0d94813fd59dacd17140603ee6b1f Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Wed, 11 Mar 2026 10:12:16 +0100 Subject: [PATCH] fix crash when no account and try to add chat --- Linphone/core/chat/ChatList.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Linphone/core/chat/ChatList.cpp b/Linphone/core/chat/ChatList.cpp index 136562fe9..1d7d02cde 100644 --- a/Linphone/core/chat/ChatList.cpp +++ b/Linphone/core/chat/ChatList.cpp @@ -158,6 +158,7 @@ void ChatList::setSelf(QSharedPointer me) { const std::shared_ptr &message, bool sendAddSignal = false) { mustBeInLinphoneThread(log().arg(Q_FUNC_INFO)); // if (!message) return; + if (!core->getDefaultAccount()) return; if (room->getAccount() != core->getDefaultAccount()) { qInfo() << log().arg("Chat room to add does not refer to current account, return"); return;