Merge "Fixing a NPE in DevicePolicyManagerService" into nyc-dev am: 6c917901cf
am: a582dd0090
* commit 'a582dd00907786132ad8eac650965718fa9e7ba9':
Fixing a NPE in DevicePolicyManagerService
Change-Id: Ifc64f674f02e707eec85a407c31dd20030dbfda0
This commit is contained in:
@@ -5672,7 +5672,10 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
||||
// Shutting down backup manager service permanently.
|
||||
long ident = mInjector.binderClearCallingIdentity();
|
||||
try {
|
||||
mInjector.getIBackupManager().setBackupServiceActive(UserHandle.USER_SYSTEM, false);
|
||||
if (mInjector.getIBackupManager() != null) {
|
||||
mInjector.getIBackupManager()
|
||||
.setBackupServiceActive(UserHandle.USER_SYSTEM, false);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
throw new IllegalStateException("Failed deactivating backup service.", e);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user