Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Bugfix/DE452288 Account Manager Util #365

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ public AccountManagerUtil(Context context, String accountName, boolean sharedSto
//Attempt to retrieve the account
Account[] accounts = mAccountManager.getAccountsByType(accountType);
for (Account account : accounts) {
if (accountName.equals(account.name)) {
if (accountName != null && accountName.equals(account.name)) {
String password = mAccountManager.getPassword(account);
String savedPassword = identifier.toString();
if (password.equals(savedPassword)) {
if (password != null && password.equals(savedPassword)) {
mAccount = account;
}else {
} else {
// - case migration from old AccountManagerStoreDataSource
mAccount = null;
identifier = new SharedStorageIdentifier();
Expand Down