From a6f5a01ce612ed718fb78a13a6abe3abbc0b5ab6 Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Fri, 27 Feb 2026 13:34:09 +0100 Subject: [PATCH] Fix crash in app state change --- Linphone/core/App.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Linphone/core/App.cpp b/Linphone/core/App.cpp index 7840165ba..48bbe0795 100644 --- a/Linphone/core/App.cpp +++ b/Linphone/core/App.cpp @@ -1585,9 +1585,11 @@ bool App::event(QEvent *event) { if (state->applicationState() == Qt::ApplicationActive) { Utils::smartShowWindow(getLastActiveWindow()); } - for (int i = 0; i < getAccountList()->rowCount(); ++i) { - auto accountCore = getAccountList()->getAt(i); - handleAccountActivity(accountCore); + if (getAccountList()) { + for (int i = 0; i < getAccountList()->rowCount(); ++i) { + auto accountCore = getAccountList()->getAt(i); + handleAccountActivity(accountCore); + } } }