am 0de529b4: Fix NPE

* commit '0de529b4cac458b2d561060d3ae2c7f7f82b676d':
  Fix NPE
main
Ken Wakasa 2014-05-02 15:44:19 +00:00 committed by Android Git Automerger
commit 70a450afe9
1 changed files with 3 additions and 1 deletions

View File

@ -147,7 +147,9 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
public void onHideWindow() {
mIsAutoCorrectionActive = false;
mKeyboardView.onHideWindow();
if (mKeyboardView != null) {
mKeyboardView.onHideWindow();
}
}
private void setKeyboard(final Keyboard keyboard) {