mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
account may be null
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
11e2856571
commit
5b0f0a3bfd
1 changed files with 7 additions and 2 deletions
|
@ -111,9 +111,14 @@ public class ManageAccountsActivity extends FileActivity
|
|||
|
||||
Account[] accountList = AccountManager.get(this).getAccountsByType(MainApp.getAccountType(this));
|
||||
mOriginalAccounts = DisplayUtils.toAccountNameSet(Arrays.asList(accountList));
|
||||
mOriginalCurrentAccount = AccountUtils.getCurrentOwnCloudAccount(this).name;
|
||||
|
||||
setAccount(AccountUtils.getCurrentOwnCloudAccount(this));
|
||||
Account currentAccount = AccountUtils.getCurrentOwnCloudAccount(this);
|
||||
|
||||
if (currentAccount != null) {
|
||||
mOriginalCurrentAccount = currentAccount.name;
|
||||
}
|
||||
|
||||
setAccount(currentAccount);
|
||||
onAccountSet(false);
|
||||
|
||||
arbitraryDataProvider = new ArbitraryDataProvider(getContentResolver());
|
||||
|
|
Loading…
Reference in a new issue