Fix a shameful bug

I must have been sleeping when I wrote that

Change-Id: I887180ab610785a2000636adeeed99230b3c5390
This commit is contained in:
Jean Chalard 2012-03-09 19:31:35 +09:00
parent 0cf422fbb7
commit dfd4abe818

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