am 7580e994: am 48d8d8d0: Fix potential NPE in MainKeyboardView.KeyTimerHandler

* commit '7580e9945ba096a2a084a6f571c2bd1a945dec8c':
  Fix potential NPE in MainKeyboardView.KeyTimerHandler
main
Tadashi G. Takaoka 2013-04-03 19:27:13 -07:00 committed by Android Git Automerger
commit 76c00decc9
1 changed files with 3 additions and 0 deletions

View File

@ -229,6 +229,9 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
@Override
public void handleMessage(final Message msg) {
final MainKeyboardView keyboardView = getOuterInstance();
if (keyboardView == null) {
return;
}
final PointerTracker tracker = (PointerTracker) msg.obj;
switch (msg.what) {
case MSG_TYPING_STATE_EXPIRED: