diff options
| author | 2022-05-02 12:21:29 -0700 | |
|---|---|---|
| committer | 2022-05-02 20:18:54 +0000 | |
| commit | cd2466ee309bb4d2e88f52e688c0e0e9e5d49b58 (patch) | |
| tree | ede3133b6f32b67c283f9724e2051a0147f6293c /libs/androidfw/StringPool.cpp | |
| parent | 4fdd1e07782a6fb4a0fa3bd8814b7a0bbedff110 (diff) | |
Ensure getUserName cannot return null
A user can be created with an explicitly null name, as happens in tests.
But getUserName claims to never return null. So we must do a null-check
here to prevent it.
Bug: 227624966
Test: atest UserManagerTest
Change-Id: Iea0e7b6292c6dd49df1bebc5467091a82ddaedb5
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions