mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
* commit '8e5c6d709052ba13a4c1ebc08def8d563e7b149c': Fix an NPE
This commit is contained in:
commit
57ac9afcc8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user