aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2010-09-28 03:29:30 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-28 03:29:30 -0700
commitad090ac3f4cee327adf74e8b35bbc446a8d64070 (patch)
tree5793f9c34484be726010f21f8cdb221217e7d4e1 /java/src/com/android/inputmethod/latin/LatinIME.java
parent5f1aecb27d008803def36efeba9d2503035c1ac4 (diff)
parent008e9b3e1a8c037e0275b19f284a7d2e76c9e140 (diff)
downloadlatinime-ad090ac3f4cee327adf74e8b35bbc446a8d64070.tar.gz
latinime-ad090ac3f4cee327adf74e8b35bbc446a8d64070.tar.xz
latinime-ad090ac3f4cee327adf74e8b35bbc446a8d64070.zip
am 008e9b3e: Fix Null pointer exception on closing and update assets
Merge commit '008e9b3e1a8c037e0275b19f284a7d2e76c9e140' into gingerbread-plus-aosp * commit '008e9b3e1a8c037e0275b19f284a7d2e76c9e140': Fix Null pointer exception on closing and update assets
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();
}