commit | cbe48d94962ff5addc11cb1e4fcd8eb0805b4470 | [log] [tgz] |
---|---|---|
author | Rubin Xu <rubinxu@google.com> | Thu Mar 04 15:42:09 2021 +0000 |
committer | Rubin Xu <rubinxu@google.com> | Thu Mar 04 16:11:24 2021 +0000 |
tree | 03298c7a0120b9f86784fc2a51a304614657ca14 | |
parent | ed23887b8ebe0dc9a7b882763164d52c84463621 [diff] |
Return copy of pending token list Make SyntheticPasswordManager.getPendingTokensForUser() return a copy of the token list, as the underlying list might change if a pending token is activated or removed. This fixes the NPE in LockSettingsService.activateEscrowTokens() where it tries to iterate through the list and activate tokens. Bug: 178560581 Test: atest com.android.server.locksettings Change-Id: I59d159d792a3d9e2a79ea521d6f01a5cb7c65695