Merge "Fix a shameful bug"

main
Jean Chalard 2012-03-09 02:35:50 -08:00 committed by Android (Google) Code Review
commit 022ef7d13b
1 changed files with 1 additions and 1 deletions

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(), "");