am 3cea91e0: am 3c2a02dc: am b4a0e3ef: Merge "Fixed a NullPointerException in AccountManagerService." into lmp-dev
* commit '3cea91e07330b6778c03510dbf7a7f71fc8477d5': Fixed a NullPointerException in AccountManagerService.
This commit is contained in:
@@ -3144,6 +3144,9 @@ public class AccountManagerService
|
||||
DevicePolicyManager dpm = (DevicePolicyManager) mContext
|
||||
.getSystemService(Context.DEVICE_POLICY_SERVICE);
|
||||
String[] typesArray = dpm.getAccountTypesWithManagementDisabledAsUser(userId);
|
||||
if (typesArray == null) {
|
||||
return true;
|
||||
}
|
||||
for (String forbiddenType : typesArray) {
|
||||
if (forbiddenType.equals(accountType)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user