am 53746972: am 86f189fd: Fix NPE

* commit '53746972d0dda9cbbf3d49cfa71271eaeb5cfe5b':
  Fix NPE
main
Ken Wakasa 2011-01-19 00:51:48 -08:00 committed by Android Git Automerger
commit c11184638e
1 changed files with 2 additions and 2 deletions

View File

@ -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) {