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

* commit '362ab36cf009d724768e742c3b2e264387efc521':
  Fix a null object reference crash on Emoji Palette
This commit is contained in:
Yohei Yukawa 2014-02-13 17:56:36 -08:00 committed by Android Git Automerger
commit f45b3b98cf

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