aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-11-20 14:35:39 +0900
committerJean Chalard <jchalard@google.com>2014-11-20 14:48:33 +0900
commita94733cbca5bc3544fa73fa1649bbb1dadf31356 (patch)
treefc3e5c5a0ac3986b71870a6a6042e6bb8db5b20c /java/src/com/android/inputmethod/latin
parent1d80cb230180305a173add2fe30b14cefc597126 (diff)
downloadlatinime-a94733cbca5bc3544fa73fa1649bbb1dadf31356.tar.gz
latinime-a94733cbca5bc3544fa73fa1649bbb1dadf31356.tar.xz
latinime-a94733cbca5bc3544fa73fa1649bbb1dadf31356.zip
Fix an NPE.
Change-Id: Ie5ab5cc716ef1211eb9ad76baa0467455e1f1a71
Diffstat (limited to 'java/src/com/android/inputmethod/latin')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 6411010e6..7b7b6d35e 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1637,8 +1637,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
}
// Cache the auto-correction in accessibility code so we can speak it if the user
// touches a key that will insert it.
- AccessibilityUtils.getInstance().setAutoCorrection(suggestedWords,
- suggestedWords.mTypedWordInfo.mWord);
+ AccessibilityUtils.getInstance().setAutoCorrection(suggestedWords);
}
// Called from {@link SuggestionStripView} through the {@link SuggestionStripView#Listener}