am 3d36cdcd
: Merge "Fix possible NPE in debug mode"
* commit '3d36cdcd2d4a4cfb6fab6d89f1a6fcc62dfce6e6': Fix possible NPE in debug mode
This commit is contained in:
commit
3e14a85bb2
1 changed files with 4 additions and 2 deletions
|
@ -443,10 +443,12 @@ public class AndroidSpellCheckerService extends SpellCheckerService {
|
||||||
Log.i(TAG, "IsInDict = " + isInDict);
|
Log.i(TAG, "IsInDict = " + isInDict);
|
||||||
Log.i(TAG, "LooksLikeTypo = " + (!isInDict));
|
Log.i(TAG, "LooksLikeTypo = " + (!isInDict));
|
||||||
Log.i(TAG, "HasLikelySuggestions = " + result.mHasLikelySuggestions);
|
Log.i(TAG, "HasLikelySuggestions = " + result.mHasLikelySuggestions);
|
||||||
|
if (null != result.mSuggestions) {
|
||||||
for (String suggestion : result.mSuggestions) {
|
for (String suggestion : result.mSuggestions) {
|
||||||
Log.i(TAG, suggestion);
|
Log.i(TAG, suggestion);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: actually use result.mHasLikelySuggestions
|
// TODO: actually use result.mHasLikelySuggestions
|
||||||
final int flags =
|
final int flags =
|
||||||
|
|
Loading…
Reference in a new issue