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

Commit d9894bc3 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fixed NPE by guarding the reference of variable

Bug: 2395174
parent 0b49ab5c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1526,6 +1526,9 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
        mDialogBuilder.setSingleChoiceItems(mItems, checkedItem,
                new AlertDialog.OnClickListener() {
                    public void onClick(DialogInterface dialog, int which) {
                        if (mIms == null) {
                            return;
                        }
                        synchronized (mMethodMap) {
                            InputMethodInfo im = mIms[which];
                            hideInputMethodMenu();