Fix possible NPE
Bug: 7398904 Change-Id: I6b7aba7a9bf52ca494cb4390b19525c98790bd49main
parent
fd08cd498e
commit
c7318bbc0b
|
@ -1932,7 +1932,7 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
|
|||
|
||||
private SuggestedWords getSuggestedWords(final int sessionId) {
|
||||
final Keyboard keyboard = mKeyboardSwitcher.getKeyboard();
|
||||
if (keyboard == null) {
|
||||
if (keyboard == null || mSuggest == null) {
|
||||
return SuggestedWords.EMPTY;
|
||||
}
|
||||
final String typedWord = mWordComposer.getTypedWord();
|
||||
|
|
Loading…
Reference in New Issue