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

Commit bd27c365 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Don't crash if default supervision profile owner is not set

Bug: 175430552
Test: build, flash, watch logcat

Change-Id: If441946fa278c04ae88122f6243f5a7dedd96ebc
parent cb18710a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -8631,6 +8631,9 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
                return null;
            }
            final ComponentName supervisorComponent = ComponentName.unflattenFromString(supervisor);
            if (supervisorComponent == null) {
                return null;
            }
            if (supervisorComponent.equals(doComponent) || supervisorComponent.equals(
                    poComponent)) {
                return supervisorComponent;