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

Commit f74a11c7 authored by Miriam Polzer's avatar Miriam Polzer
Browse files

Return null instead of crashing when user does not exists

The checkIfKeyguardFeaturesDisabled function was crashing with a
nullptr exception when called on a userId that does not exists.
Return null instead. No user means nothing can be disabled.

Fix: 386971405
Test: atest \
SettingsLibRoboTests:com.android.settingslib.RestrictedLockUtilsTest
Flag: EXEMPT BUG_FIX
Change-Id: Ibc04b2faf8c0480d1f1b6bf4c7ee578b5b126d1a
parent e18535d5
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