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

Commit 1a55dcce authored by Svetoslav's avatar Svetoslav Committed by Android Git Automerger
Browse files

am dc876b56: Merge "Fix a NPE in device policy manager service." into lmp-dev

* commit 'dc876b56':
  Fix a NPE in device policy manager service.
parents 27f80673 dc876b56
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5320,6 +5320,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
        @Override
        public List<String> getCrossProfileWidgetProviders(int profileId) {
            synchronized (DevicePolicyManagerService.this) {
                if (mDeviceOwner == null) {
                    return Collections.emptyList();
                }
                ComponentName ownerComponent = mDeviceOwner.getProfileOwnerComponent(profileId);
                if (ownerComponent == null) {
                    return Collections.emptyList();