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

Commit 9906847c authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Bug 5218421: new NPE is SpellChecker when using Japanese language

The spell checker session is null because the Japanase language is not supported.

Change-Id: I41d2157e8f66799fdb6dff718e8903ce6f1bb9fe
parent f455e9a3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -112,6 +112,8 @@ public class SpellChecker implements SpellCheckerSessionListener {

    private void scheduleSpellCheck() {
        if (mLength == 0) return;
        if (spellCheckerSession == null) return;

        if (mChecker != null) {
            mTextView.removeCallbacks(mChecker);
        }