Merge "Revert "Avoid LockSettingsService NPE during CTS due to races around user removal.""
This commit is contained in:
committed by
Android (Google) Code Review
commit
5d9e667fdf
@@ -1973,8 +1973,7 @@ public class LockSettingsService extends ILockSettings.Stub {
|
||||
} catch (RemoteException ex) {
|
||||
Slog.w(TAG, "unable to clear GK secure user id");
|
||||
}
|
||||
UserInfo userInfo = mUserManager.getUserInfo(userId);
|
||||
if (unknownUser || userInfo == null || userInfo.isManagedProfile()) {
|
||||
if (unknownUser || mUserManager.getUserInfo(userId).isManagedProfile()) {
|
||||
removeKeystoreProfileKey(userId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user