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

Commit 6c917901 authored by Ashley Smith's avatar Ashley Smith Committed by Android (Google) Code Review
Browse files

Merge "Fixing a NPE in DevicePolicyManagerService" into nyc-dev

parents b0d38b6d 820ae5a4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 {