diff options
author | 2014-05-03 00:33:41 +0900 | |
---|---|---|
committer | 2014-05-02 11:53:07 -0700 | |
commit | 0fac2d0492e29cd7a4896cd3a5207eab48dc1853 (patch) | |
tree | b1bf3ca574b4d62b1ae36c03194e0eee975f88c9 /java/src | |
parent | 5b0342a20b512aae9ebb9995c47982a7753cfa11 (diff) | |
download | latinime-0fac2d0492e29cd7a4896cd3a5207eab48dc1853.tar.gz latinime-0fac2d0492e29cd7a4896cd3a5207eab48dc1853.tar.xz latinime-0fac2d0492e29cd7a4896cd3a5207eab48dc1853.zip |
Fix NPE
Follow up to I2b0ec091a11aa8a495794d633efecb6d8b818f42
bug: 14488351
Change-Id: Ic88adbd6775910f35338d798dc0d5493715708e4
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java index 589e99ea6..1cd6ef249 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java @@ -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) { |