aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2010-09-28 11:27:44 +0900
committersatok <satok@google.com>2010-09-28 16:52:54 +0900
commit008e9b3e1a8c037e0275b19f284a7d2e76c9e140 (patch)
tree5793f9c34484be726010f21f8cdb221217e7d4e1 /java/src/com/android/inputmethod/latin/LatinIME.java
parente07bc39a3b3e15b35ff4f3abe37143d93b27f264 (diff)
downloadlatinime-008e9b3e1a8c037e0275b19f284a7d2e76c9e140.tar.gz
latinime-008e9b3e1a8c037e0275b19f284a7d2e76c9e140.tar.xz
latinime-008e9b3e1a8c037e0275b19f284a7d2e76c9e140.zip
Fix Null pointer exception on closing and update assets
Change-Id: I30fdac74685beae06b5c61140452b26b29ae4c39
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 01f3ba66c..26f8a328b 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1487,7 +1487,12 @@ public class LatinIME extends InputMethodService
mVoiceInput.cancel();
}
requestHideSelf(0);
- mKeyboardSwitcher.getInputView().closing();
+ if (mKeyboardSwitcher != null) {
+ LatinKeyboardView inputView = mKeyboardSwitcher.getInputView();
+ if (inputView != null) {
+ inputView.closing();
+ }
+ }
TextEntryState.endSession();
}