Fix possible NPE

Bug: 7398904
Change-Id: I6b7aba7a9bf52ca494cb4390b19525c98790bd49
main
Tadashi G. Takaoka 2012-10-29 18:40:37 +09:00
parent fd08cd498e
commit c7318bbc0b
1 changed files with 1 additions and 1 deletions

View File

@ -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();