Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ce8efc4 authored by Sean Wan's avatar Sean Wan Committed by Android Git Automerger
Browse files

am b4a0e3ef: Merge "Fixed a NullPointerException in AccountManagerService." into lmp-dev

* commit 'b4a0e3efc8dc5b26cbc2476c67b052914a2970bf':
  Fixed a NullPointerException in AccountManagerService.
parents 317ffe91 a5d3e030
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;