Fix NPE in onBasicsComplete

Check for null mExistingAccountsMap as is done in finishAutoSetup().

Bug:15835752
Change-Id: I9e01d36990e107dc2c89f345c5e6f4565f071913
This commit is contained in:
Jay Shrauner 2014-06-23 15:10:11 -07:00
parent 2eecdd1a50
commit 73a561fbbd

View File

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