mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 05:25:50 +03:00
Merge pull request #3888 from nextcloud/bugfix/crash-sync-summary
Check if current user exists before getting it's account state
This commit is contained in:
commit
4296eb3571
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue