Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51075d14 authored by Jean Chalard's avatar Jean Chalard
Browse files

Fix possible NPE in debug mode

Change-Id: I55776110a489621c99e9a3bf58daa6fcaf415cb3
parent 3458d618
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -438,10 +438,12 @@ public class AndroidSpellCheckerService extends SpellCheckerService {
                    Log.i(TAG, "IsInDict = " + isInDict);
                    Log.i(TAG, "LooksLikeTypo = " + (!isInDict));
                    Log.i(TAG, "HasLikelySuggestions = " + result.mHasLikelySuggestions);
                    if (null != result.mSuggestions) {
                        for (String suggestion : result.mSuggestions) {
                            Log.i(TAG, suggestion);
                        }
                    }
                }

                // TODO: actually use result.mHasLikelySuggestions
                final int flags =