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

Commit 820ae5a4 authored by Ashley Smith's avatar Ashley Smith
Browse files

Fixing a NPE in DevicePolicyManagerService

Bug: 28786940
Change-Id: I73de8dea9221765ed0751039f3d472cf78d341af
parent cef3337c
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 {