Fix a StringIndexOutOfBounds. Bug: 2524050

main
Amith Yamasani 2010-03-17 21:37:25 -07:00
parent 1ab409272b
commit 6780b898ec
1 changed files with 1 additions and 1 deletions

View File

@ -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);