aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2011-02-14 20:24:09 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-02-14 20:24:09 -0800
commit0e71cb1fff9188841aca207533434ae147a278ac (patch)
tree60bff145ded6fd9046f40da0714f56e8ea4053e5 /java/src
parent6e7275bb7320225fe967e71d900db3c6c96d2e90 (diff)
parentb1e05d6638b7eab3c43d9b6b83970cd7a1867eee (diff)
downloadlatinime-0e71cb1fff9188841aca207533434ae147a278ac.tar.gz
latinime-0e71cb1fff9188841aca207533434ae147a278ac.tar.xz
latinime-0e71cb1fff9188841aca207533434ae147a278ac.zip
Merge "Fix NPE"
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/UserDictionary.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/UserDictionary.java b/java/src/com/android/inputmethod/latin/UserDictionary.java
index 56ee5b9e7..db5d9244f 100644
--- a/java/src/com/android/inputmethod/latin/UserDictionary.java
+++ b/java/src/com/android/inputmethod/latin/UserDictionary.java
@@ -138,7 +138,7 @@ public class UserDictionary extends ExpandableDictionary {
private void addWords(Cursor cursor) {
clearDictionary();
-
+ if (cursor == null) return;
final int maxWordLength = getMaxWordLength();
if (cursor.moveToFirst()) {
final int indexWord = cursor.getColumnIndex(Words.WORD);