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

Commit 0e58b6ab authored by Svetoslav's avatar Svetoslav Committed by Android Git Automerger
Browse files

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

* commit '1a55dcce':
  Fix a NPE in device policy manager service.
parents 6f1edae8 1a55dcce
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();