Преглед на файлове

Merge pull request #9710 from nextcloud/fix/crash-on-remove-all-accounts

SessionMixin: set currentAccount to null when no accounts are available
Tobias Kaminsky преди 3 години
родител
ревизия
e091a15089
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/main/java/com/nextcloud/client/mixins/SessionMixin.kt

+ 1 - 0
src/main/java/com/nextcloud/client/mixins/SessionMixin.kt

@@ -91,6 +91,7 @@ class SessionMixin constructor(
         val newAccount = accountManager.currentAccount
         if (newAccount == null) {
             // no account available: force account creation
+            currentAccount = null
             startAccountCreation()
         } else {
             currentAccount = newAccount