aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2011-01-19 17:44:51 +0900
committerKen Wakasa <kwakasa@google.com>2011-01-19 17:44:51 +0900
commit86f189fd969de7259a0e0fcc1cf868ba667f3e3b (patch)
treed3972de9b5b3814045b8df73e700da48d32cfffc /java/src
parent08ca36d0383a7d222d58709f55c497f3432dc229 (diff)
downloadlatinime-86f189fd969de7259a0e0fcc1cf868ba667f3e3b.tar.gz
latinime-86f189fd969de7259a0e0fcc1cf868ba667f3e3b.tar.xz
latinime-86f189fd969de7259a0e0fcc1cf868ba667f3e3b.zip
Fix NPE
bug: 3364217 Change-Id: If6a2514a8feac509d7b6716c8574521a0ec0fa3e
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java b/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
index ef41cb6e4..e9d5580e8 100644
--- a/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
+++ b/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
@@ -205,10 +205,10 @@ public class LatinKeyboardView extends KeyboardView {
@Override
public boolean onTouchEvent(MotionEvent me) {
LatinKeyboard keyboard = getLatinKeyboard();
+ if (keyboard == null) return true;
// If there was a sudden jump, return without processing the actual motion event.
- if (handleSuddenJump(me))
- return true;
+ if (handleSuddenJump(me)) return true;
// Reset any bounding box controls in the keyboard
if (me.getAction() == MotionEvent.ACTION_DOWN) {