Merge "Fix a shameful bug"

This commit is contained in:
Jean Chalard 2012-03-09 02:35:50 -08:00 committed by Android (Google) Code Review
commit 022ef7d13b

View file

@ -2047,7 +2047,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
builder = null;
}
if (null == builder || builder.size() > 0) {
if (null != builder && builder.size() > 0) {
// Explicitly supply an empty typed word (the no-second-arg version of
// showSuggestions will retrieve the word near the cursor, we don't want that here)
showSuggestions(builder.build(), "");