Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b06cb887 authored by Jae Seo's avatar Jae Seo
Browse files

Skip cleaning up TV service/session when the user state is not found

Bug: 13930813
Change-Id: I64285edaca0bd06d6f6efaeb6b5c30c2ef762902
parent 8d637b81
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 {