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

Commit a23995c2 authored by Paul Crowley's avatar Paul Crowley
Browse files

Fix NPE if FPE service does not exist.

Bug: 19846662
Change-Id: I44e014c66a524b282cce0cfc9b7513fc0f553576
parent d6216305
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3031,8 +3031,10 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
                    }
                    PersistentDataBlockManager manager = (PersistentDataBlockManager)
                            mContext.getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE);
                    if (manager != null) {
                        manager.wipe();
                    }
                }
                boolean wipeExtRequested = (flags & WIPE_EXTERNAL_STORAGE) != 0;
                wipeDeviceOrUserLocked(wipeExtRequested, userHandle,
                        "DevicePolicyManager.wipeData() from " + source);