diff options
author | 2014-08-29 19:19:09 +0000 | |
---|---|---|
committer | 2014-08-29 19:19:09 +0000 | |
commit | 2b44ba116a8d0926f7b4f5cae1b0306ac5e04a5c (patch) | |
tree | 1ab8c3bb825f1de890c1e9f1673782b31f36f905 /java/src | |
parent | 607081c40c9b4dfa12b309e3e5bdaaa7dec3b498 (diff) | |
parent | 78bb2dd945a013f230396f3ce9c122a20fec21cf (diff) | |
download | latinime-2b44ba116a8d0926f7b4f5cae1b0306ac5e04a5c.tar.gz latinime-2b44ba116a8d0926f7b4f5cae1b0306ac5e04a5c.tar.xz latinime-2b44ba116a8d0926f7b4f5cae1b0306ac5e04a5c.zip |
am 78bb2dd9: am 3bd8eee3: am 4e28a6a8: Fix an IOOB exception
* commit '78bb2dd945a013f230396f3ce9c122a20fec21cf':
Fix an IOOB exception
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SuggestedWords.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java index 1eebabece..6bc3da885 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java @@ -429,7 +429,7 @@ public class SuggestedWords { */ @UsedForTesting public SuggestedWordInfo getTypedWordInfoOrNull() { - if (this == EMPTY) { + if (SuggestedWords.INDEX_OF_TYPED_WORD >= size()) { return null; } final SuggestedWordInfo info = getInfo(SuggestedWords.INDEX_OF_TYPED_WORD); |