commit | 5348e68306f682ba4a9a4585b806140802f255aa | [log] [tgz] |
---|---|---|
author | Kevin Han <kevhan@google.com> | Wed Jan 05 18:33:16 2022 -0800 |
committer | Kevin Han <kevhan@google.com> | Wed Jan 05 18:40:51 2022 -0800 |
tree | c07e6df5abcadf448f5e637f482564afa8d8088a | |
parent | 65094b9d544e15d442e185bd37d3221770c2cebd [diff] |
Lock before checking if user state is null If a user is removed between the user state null check and the lock, it is possible to run into a NPE. We fix this by putting the entire user state check inside the lock. Bug: 211906910 Test: builds Change-Id: I1f5f4d05f7d21db1af08e4d8cbaa48f41470dee0