* commit '1a55dcceaa37d224312ab4b3e4ee31034fa3636d': Fix a NPE in device policy manager service.
This commit is contained in:
@@ -5320,6 +5320,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
|||||||
@Override
|
@Override
|
||||||
public List<String> getCrossProfileWidgetProviders(int profileId) {
|
public List<String> getCrossProfileWidgetProviders(int profileId) {
|
||||||
synchronized (DevicePolicyManagerService.this) {
|
synchronized (DevicePolicyManagerService.this) {
|
||||||
|
if (mDeviceOwner == null) {
|
||||||
|
return Collections.emptyList();
|
||||||
|
}
|
||||||
ComponentName ownerComponent = mDeviceOwner.getProfileOwnerComponent(profileId);
|
ComponentName ownerComponent = mDeviceOwner.getProfileOwnerComponent(profileId);
|
||||||
if (ownerComponent == null) {
|
if (ownerComponent == null) {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
|
|||||||
Reference in New Issue
Block a user