From 0a5345c7b6e9282ea401a4017c2c2f9835e623b1 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Wed, 27 Jul 2011 15:35:05 -0700 Subject: [PATCH] Fix NPE Bug: 5086698 Change-Id: Iaa3082649344722bd643c49c9d151df754d6e337 --- java/src/com/android/inputmethod/keyboard/PointerTracker.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/src/com/android/inputmethod/keyboard/PointerTracker.java b/java/src/com/android/inputmethod/keyboard/PointerTracker.java index f64835726..6b6a4538f 100644 --- a/java/src/com/android/inputmethod/keyboard/PointerTracker.java +++ b/java/src/com/android/inputmethod/keyboard/PointerTracker.java @@ -674,6 +674,7 @@ public class PointerTracker { private void startLongPressTimer(int keyIndex) { Key key = getKey(keyIndex); + if (key == null) return; if (key.mCode == Keyboard.CODE_SHIFT) { if (sLongPressShiftKeyTimeout > 0) { mTimerProxy.startLongPressTimer(sLongPressShiftKeyTimeout, keyIndex, this);