Merge "Prevent null allowableAccounts from crashing" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2f0116fa3a
@@ -2359,7 +2359,7 @@ public class AccountManager {
|
|||||||
intent.setClassName(componentName.getPackageName(),
|
intent.setClassName(componentName.getPackageName(),
|
||||||
componentName.getClassName());
|
componentName.getClassName());
|
||||||
intent.putExtra(ChooseTypeAndAccountActivity.EXTRA_ALLOWABLE_ACCOUNTS_ARRAYLIST,
|
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,
|
intent.putExtra(ChooseTypeAndAccountActivity.EXTRA_ALLOWABLE_ACCOUNT_TYPES_STRING_ARRAY,
|
||||||
allowableAccountTypes);
|
allowableAccountTypes);
|
||||||
intent.putExtra(ChooseTypeAndAccountActivity.EXTRA_ADD_ACCOUNT_OPTIONS_BUNDLE,
|
intent.putExtra(ChooseTypeAndAccountActivity.EXTRA_ADD_ACCOUNT_OPTIONS_BUNDLE,
|
||||||
|
|||||||
Reference in New Issue
Block a user