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

Skip to content
Commit 5764b428 authored by Paul Hu's avatar Paul Hu
Browse files

Fix an NPE when a user is added and then removed quickly

If a user is added and then removed quickly, the user id in
user-added intent received by the VPN to retrieve UserInfo might
return null. Using this invalid UserInfo for checks can cause an
NPE. Therefore, add a null check for the retrieved UserInfo
before using it.

Bug: 382602272
Test: atest FrameworksVpnTests
Change-Id: I14091d6728bf7e8cfaefdff7d1687a391bd0663f
parent 42724a8e
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