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

Commit 8e5c6d70 authored by Jean Chalard's avatar Jean Chalard Committed by Android Git Automerger
Browse files

am fd15686a: Merge "Fix an NPE"

* commit 'fd15686a':
  Fix an NPE
parents 10800d4b fd15686a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2413,6 +2413,7 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
        if (!mConnection.isCursorTouchingWord(mSettings.getCurrent())) return;
        final Range range = mConnection.getWordRangeAtCursor(mSettings.getWordSeparators(),
                0 /* additionalPrecedingWordsCount */);
        if (null == range) return; // Happens if we don't have an input connection at all
        final ArrayList<SuggestedWordInfo> suggestions = CollectionUtils.newArrayList();
        final String typedWord = range.mWord.toString();
        if (range.mWord instanceof SpannableString) {