diff options
| author | 2025-03-20 07:34:58 -0700 | |
|---|---|---|
| committer | 2025-03-20 10:21:44 -0700 | |
| commit | f74a11c7ffb7e7f89e5c6ce85006d31c78322ea5 (patch) | |
| tree | cb1c76844c3cf80a3f829236e31a5fa7087371d4 /libs/androidfw/FileStream.cpp | |
| parent | e18535d544ff9b2282d99b34fe9751d7b3ee46db (diff) | |
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
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions