diff options
author | 2010-03-17 21:37:25 -0700 | |
---|---|---|
committer | 2010-03-17 21:39:02 -0700 | |
commit | 6780b898ec2647a21319601a03ae1c393c0e1b29 (patch) | |
tree | 635f454e64511a96b07600f866cc10547a164404 /java/src | |
parent | 1ab409272bafe4c78c3e5c422f3855893249fb76 (diff) | |
download | latinime-6780b898ec2647a21319601a03ae1c393c0e1b29.tar.gz latinime-6780b898ec2647a21319601a03ae1c393c0e1b29.tar.xz latinime-6780b898ec2647a21319601a03ae1c393c0e1b29.zip |
Fix a StringIndexOutOfBounds. Bug: 2524050
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 70d49f564..dc6be4346 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1468,7 +1468,7 @@ public class LatinIME extends InputMethodService mHandler.removeMessages(MSG_UPDATE_SUGGESTIONS); updateSuggestions(); } - if (mBestWord != null) { + if (mBestWord != null && mBestWord.length() > 0) { TextEntryState.acceptedDefault(mWord.getTypedWord(), mBestWord); mJustAccepted = true; pickSuggestion(mBestWord); |