Skip to content
Commit cbe48d94 authored by Rubin Xu's avatar Rubin Xu
Browse files

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
parent ed23887b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment