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,8 +724,10 @@ public final class EmojiPalettesView extends LinearLayout implements OnTabChange
// canceled. // canceled.
final EmojiPageKeyboardView currentKeyboardView = final EmojiPageKeyboardView currentKeyboardView =
mActiveKeyboardViews.get(mActivePosition); mActiveKeyboardViews.get(mActivePosition);
if (currentKeyboardView != null) {
currentKeyboardView.releaseCurrentKey(); currentKeyboardView.releaseCurrentKey();
} }
}
@Override @Override
public int getCount() { public int getCount() {