diff --git a/src/gui/tray/syncstatussummary.cpp b/src/gui/tray/syncstatussummary.cpp index a66a5d9d9..5a2074dd3 100644 --- a/src/gui/tray/syncstatussummary.cpp +++ b/src/gui/tray/syncstatussummary.cpp @@ -53,7 +53,11 @@ SyncStatusSummary::SyncStatusSummary(QObject *parent) void SyncStatusSummary::load() { - auto accountState = UserModel::instance()->currentUser()->accountState(); + const auto currentUser = UserModel::instance()->currentUser(); + if (!currentUser) { + return; + } + auto accountState = currentUser->accountState(); if (_accountState.data() == accountState.data()) { return;