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

Skip to content
Commit 484b48b1 authored by Hai Zhang's avatar Hai Zhang
Browse files

Quick fix for NPE in onPackageUninstalled() for UPS.

When users are removed and created by tests, there may be a race
condition so that onPackageUninstalled() is called with a user ID that
no longer exists. The call site is hard to fix because it's nested
inside too many layers of package manager logic, but we can at least
detect and skip it in onPackageUninstalled().

Fixes: 282988200
Test: atest CtsDevicePolicyTestCases:android.devicepolicy.cts.UserRestrictionsTest
Change-Id: I719a46eb8675bcb880d60bac0a79fb6714ac8914
parent 3eb06511
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment