am d86ab3c5: am 2f0116fa: Merge "Prevent null allowableAccounts from crashing" into mnc-dev

* commit 'd86ab3c539cd548d54620edf8836546695dd7424':
  Prevent null allowableAccounts from crashing
This commit is contained in:
Craig Lafayette
2015-07-14 17:49:51 +00:00
committed by Android Git Automerger

View File

@@ -2359,7 +2359,7 @@ public class AccountManager {
intent.setClassName(componentName.getPackageName(),
componentName.getClassName());
intent.putExtra(ChooseTypeAndAccountActivity.EXTRA_ALLOWABLE_ACCOUNTS_ARRAYLIST,
new ArrayList<Account>(allowableAccounts));
allowableAccounts == null ? null : new ArrayList<Account>(allowableAccounts));
intent.putExtra(ChooseTypeAndAccountActivity.EXTRA_ALLOWABLE_ACCOUNT_TYPES_STRING_ARRAY,
allowableAccountTypes);
intent.putExtra(ChooseTypeAndAccountActivity.EXTRA_ADD_ACCOUNT_OPTIONS_BUNDLE,