Fix NPE on logging words

Change-Id: Idb01cc3226a979de656b30e57422bb35b25d13fa
main
satok 2010-07-01 08:42:20 +09:00
parent 9d2e059f83
commit 9c76844da2
1 changed files with 2 additions and 1 deletions

View File

@ -197,10 +197,11 @@ public class Suggest implements Dictionary.WordCallback {
if (mOriginalWord != null) {
mOriginalWord = mOriginalWord.toString();
mLowerOriginalWord = mOriginalWord.toString().toLowerCase();
LatinImeLogger.onAddSuggestedWord(mOriginalWord.toString(), Suggest.DIC_USER_TYPED);
} else {
mLowerOriginalWord = "";
}
LatinImeLogger.onAddSuggestedWord(mOriginalWord.toString(), Suggest.DIC_USER_TYPED);
// Search the dictionary only if there are at least 2 characters
if (wordComposer.size() > 1) {
if (mUserDictionary != null || mContactsDictionary != null) {