Merge "Fix NPE on logging words"

This commit is contained in:
satok 2010-06-30 17:37:29 -07:00 committed by Gerrit Code Review
commit c891d4d16c

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) {