am 362ab36c: Fix a null object reference crash on Emoji Palette

* commit '362ab36cf009d724768e742c3b2e264387efc521':
  Fix a null object reference crash on Emoji Palette
main
Yohei Yukawa 2014-02-13 17:56:36 -08:00 committed by Android Git Automerger
commit f45b3b98cf
1 changed files with 3 additions and 1 deletions

View File

@ -724,7 +724,9 @@ public final class EmojiPalettesView extends LinearLayout implements OnTabChange
// canceled.
final EmojiPageKeyboardView currentKeyboardView =
mActiveKeyboardViews.get(mActivePosition);
currentKeyboardView.releaseCurrentKey();
if (currentKeyboardView != null) {
currentKeyboardView.releaseCurrentKey();
}
}
@Override