mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Prevent crash when updating file provider domains if the account for which a file provider domain was configured no longer exists
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
07d5e40ade
commit
fc2e687c3d
1 changed files with 3 additions and 2 deletions
|
@ -458,8 +458,9 @@ void FileProviderDomainManager::updateFileProviderDomains()
|
|||
continue;
|
||||
}
|
||||
|
||||
const auto accountState = AccountManager::instance()->accountFromUserId(accountUserIdAtHost);
|
||||
addFileProviderDomainForAccount(accountState.data());
|
||||
if (const auto accountState = AccountManager::instance()->accountFromUserId(accountUserIdAtHost)) {
|
||||
addFileProviderDomainForAccount(accountState.data());
|
||||
}
|
||||
}
|
||||
|
||||
for (const auto &remainingDomainUserId : configuredDomains) {
|
||||
|
|
Loading…
Reference in a new issue