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

Commit 4e68b657 authored by Adili Muguro's avatar Adili Muguro Committed by Sean Wan
Browse files

Fixed a NullPointerException in AccountManagerService.

Change-Id: If65d7870c609ae6c7467e26978ffd0ce0d52f518
parent 0bc94550
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;