commit | 37471ba1ce53615c19401d6202fad5363fa62225 | [log] [tgz] |
---|---|---|
author | Oli Lan <olilan@google.com> | Thu Jul 28 17:15:05 2022 +0100 |
committer | Oli Lan <olilan@google.com> | Thu Jul 28 17:15:05 2022 +0100 |
tree | feaf932338e2119ff9ee7a08a1d0e42590fd7555 | |
parent | 3c7368d84c0da3bf03373898900351e430c3742a [diff] |
Check for null application context in UserManager. UserManager currently always uses getApplicationContext for its internal context object, but that method can return null under certain circumstances. This CL adds a null check, so that the original context is used if the app context is null. Bug: 232179155 Bug: 233915566 Test: atest UserManagerTest Test: install Apex Launcher and App Hider on device with work profile Change-Id: I26bcf693da8f5bc53126f79f9e6ffb17bd87fc84