Merge "Fix NPE in onBasicsComplete" into ub-mail-master

This commit is contained in:
Jay Shrauner 2014-06-23 22:18:37 +00:00 committed by Android (Google) Code Review
commit 5417166477

View File

@ -767,7 +767,8 @@ public class AccountSetupFinal extends AccountSetupActivity
}
} else {
mIsPreConfiguredProvider = false;
final String existingAccountName = mExistingAccountsMap.get(email);
final String existingAccountName =
mExistingAccountsMap != null ? mExistingAccountsMap.get(email) : null;
if (!TextUtils.isEmpty(existingAccountName)) {
showDuplicateAccountDialog(existingAccountName);
return false;