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