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

Commit bfe1eded authored by Uday Kiran jandhyala's avatar Uday Kiran jandhyala Committed by Gerrit - the friendly Code Review server
Browse files

InputMethodManagerService: Fixed crash in a log statement

Added null check before printing default InputMethodInfo

CRs-Fixed: 781555

Change-Id: Ia93e658852706b33efb01cfa4f51670a64ccd97e
parent 3c4a7e49
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -774,9 +774,9 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
        if (defIm == null && mMethodList.size() > 0) {
            defIm = InputMethodUtils.getMostApplicableDefaultIME(
                    mSettings.getEnabledInputMethodListLocked());
            Slog.i(TAG, "No default found, using " + defIm.getId());
        }
        if (defIm != null) {
            Slog.i(TAG, "No default found, using " + defIm.getId());
            setSelectedInputMethodAndSubtypeLocked(defIm, NOT_A_SUBTYPE_ID, false);
        }
    }