Change-Id: I35efd1d6c8c2b48d93675d014d5c7aef7d12ed58
main
Tadashi G. Takaoka 2011-06-20 11:29:04 +09:00
parent 56a6c8dc22
commit e218baa6cc
1 changed files with 1 additions and 1 deletions

View File

@ -615,7 +615,7 @@ public class PointerTracker {
// The modifier key, such as shift key, should not show its key preview.
private boolean isKeyPreviewNotRequired(int keyIndex) {
final Key key = getKey(keyIndex);
if (!key.mEnabled)
if (key == null || !key.mEnabled)
return true;
// Such as spacebar sliding language switch.
if (mKeyboard.needSpacebarPreview(keyIndex))