From b5e00d5841b946de8970875231456228ae0eb6b1 Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Thu, 27 Jan 2011 01:33:02 +0900 Subject: [PATCH] Fix NPE in isCandidateStripVisible() Change-Id: I03d3c4806b51e7f902c43887a6769bffbffeccaf --- java/src/com/android/inputmethod/latin/LatinIME.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 78674b4e4..411099592 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1452,6 +1452,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } private boolean isCandidateStripVisible() { + if (mCandidateView == null) + return false; if (mCandidateView.isShowingAddToDictionaryHint() || TextEntryState.isCorrecting()) return true; if (!isShowingSuggestionsStrip())