From 5622016824b89e1edddecc3aa9b785e737e47978 Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Wed, 21 Jan 2026 17:00:23 +0100 Subject: [PATCH] fix crash when eventLog from newEvent signal is null --- Linphone/core/chat/ChatCore.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Linphone/core/chat/ChatCore.cpp b/Linphone/core/chat/ChatCore.cpp index 1bf174f18..5cb58be68 100644 --- a/Linphone/core/chat/ChatCore.cpp +++ b/Linphone/core/chat/ChatCore.cpp @@ -211,6 +211,7 @@ void ChatCore::setSelf(QSharedPointer me) { const std::shared_ptr &eventLog) { if (mChatModel->getMonitor() != chatRoom) return; lDebug() << "EVENT LOG RECEIVED IN CHATROOM" << mChatModel->getTitle(); + if (!eventLog) return; auto event = EventLogCore::create(eventLog, chatRoom); if (event->isHandled()) { mChatModelConnection->invokeToCore([this, event]() { emit eventsInserted({event}); });