From cb8cb95d0afd340de9f1a0e15948f0068d2450bc Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Wed, 26 Oct 2011 02:35:44 +0900 Subject: [PATCH] Fix NPE bug: 5512097 Change-Id: Id6752c95c9c4b39e7975daa187a2ab92b740060a --- java/src/com/android/inputmethod/latin/LatinIME.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 866cdaa51..567537df2 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1591,6 +1591,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar } public boolean isShowingPunctuationList() { + if (mSuggestionsView == null) return false; return mSettingsValues.mSuggestPuncList == mSuggestionsView.getSuggestions(); }