diff options
author | 2011-07-17 16:37:01 -0700 | |
---|---|---|
committer | 2011-07-17 16:37:01 -0700 | |
commit | f0d6058b9ecf7b26f2418edc66041c3e0af928e1 (patch) | |
tree | 50bceb569d5499b030436105ea89f411e1a8fc80 /java/src | |
parent | 60be1b6ae136d5bd3db204855fbdc81549c1d855 (diff) | |
download | latinime-f0d6058b9ecf7b26f2418edc66041c3e0af928e1.tar.gz latinime-f0d6058b9ecf7b26f2418edc66041c3e0af928e1.tar.xz latinime-f0d6058b9ecf7b26f2418edc66041c3e0af928e1.zip |
Fix NPE
Bug: 5030817
Change-Id: I13133abb308d9f0c8169b6ea3fc0913ce5dda3d6
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/KeyboardView.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardView.java b/java/src/com/android/inputmethod/keyboard/KeyboardView.java index e31aa8478..2e0683115 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardView.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardView.java @@ -142,7 +142,9 @@ public class KeyboardView extends View implements PointerTracker.DrawingProxy { keyboardView.showKey(msg.arg1, tracker); break; case MSG_DISMISS_KEY_PREVIEW: - keyboardView.mPreviewText.setVisibility(View.INVISIBLE); + if (keyboardView.mPreviewText != null) { + keyboardView.mPreviewText.setVisibility(View.INVISIBLE); + } break; } } |