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

Commit b5b90d9c authored by Antonio Kantek's avatar Antonio Kantek
Browse files

Add null check in handleShellCommandResetInputMethod

This CL only introduces a null check before testing if the user is
headless.

Fix: 337173728
Test: presubmit
Change-Id: I17e08ca2957d5e19cc00879906e4495c36509fd0
parent ca3755c4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6456,8 +6456,8 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
                        continue;
                    }
                    // Skip on headless user
                    if (USER_TYPE_SYSTEM_HEADLESS.equals(
                            mUserManagerInternal.getUserInfo(userId).userType)) {
                    final var userInfo = mUserManagerInternal.getUserInfo(userId);
                    if (userInfo != null && USER_TYPE_SYSTEM_HEADLESS.equals(userInfo.userType)) {
                        continue;
                    }
                    final String nextIme;