Skip cleaning up TV service/session when the user state is not found
Bug: 13930813 Change-Id: I64285edaca0bd06d6f6efaeb6b5c30c2ef762902
This commit is contained in:
@@ -151,8 +151,11 @@ public final class TvInputManagerService extends SystemService {
|
||||
|
||||
private void removeUser(int userId) {
|
||||
synchronized (mLock) {
|
||||
UserState userState = mUserStates.get(userId);
|
||||
if (userState == null) {
|
||||
return;
|
||||
}
|
||||
// Release created sessions.
|
||||
UserState userState = getUserStateLocked(userId);
|
||||
for (SessionState state : userState.sessionStateMap.values()) {
|
||||
if (state.session != null) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user