mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
gui/macOS: Do not assume accountState will always be valid
When removing an account this can change Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
182ff73c84
commit
697c3080ca
@ -206,7 +206,10 @@ void FileProviderSocketController::sendNotAuthenticated() const
|
||||
|
||||
void FileProviderSocketController::sendAccountDetails() const
|
||||
{
|
||||
Q_ASSERT(_accountState);
|
||||
if (!_accountState) {
|
||||
qCWarning(lcFileProviderSocketController) << "No account state available to send account details, stopping";
|
||||
return;
|
||||
}
|
||||
const auto account = _accountState->account();
|
||||
Q_ASSERT(account);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user