aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-06-27 20:30:40 +0900
committerTadashi G. Takaoka <takaoka@google.com>2011-06-27 20:30:40 +0900
commit281e180c33b1dd88e8eae48f279736c529f529d2 (patch)
treec80885a3ea0f14f2d79898e6a1d39162195b09a3 /java/src
parentd8850ae1abca823632014a01315ebc1f27f7ffd8 (diff)
downloadlatinime-281e180c33b1dd88e8eae48f279736c529f529d2.tar.gz
latinime-281e180c33b1dd88e8eae48f279736c529f529d2.tar.xz
latinime-281e180c33b1dd88e8eae48f279736c529f529d2.zip
Fix NPE
Change-Id: Ie4b8b657fc6cc5a819d4ea3a0ca4536e6fdf6825
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 52935ef7d..3b840c8a1 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -514,7 +514,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
super.setInputView(view);
mCandidateViewContainer = view.findViewById(R.id.candidates_container);
mCandidateView = (CandidateView) view.findViewById(R.id.candidates);
- mCandidateView.setListener(this, view);
+ if (mCandidateView != null)
+ mCandidateView.setListener(this, view);
mCandidateStripHeight = (int)mResources.getDimension(R.dimen.candidate_strip_height);
}