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

Commit bf9767cd authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Null check for sentence level spell checking method.

Bug: 15334309
Change-Id: Id7dd440f7df37da76ae6381abe057ff92a76f4a1
parent e90a218c
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -427,8 +427,12 @@ public class SpellCheckerSession {


        @Override
        @Override
        public void onGetSentenceSuggestions(SentenceSuggestionsInfo[] results) {
        public void onGetSentenceSuggestions(SentenceSuggestionsInfo[] results) {
            mHandler.sendMessage(
            synchronized (this) {
                    Message.obtain(mHandler, MSG_ON_GET_SUGGESTION_MULTIPLE_FOR_SENTENCE, results));
                if (mHandler != null) {
                    mHandler.sendMessage(Message.obtain(mHandler,
                            MSG_ON_GET_SUGGESTION_MULTIPLE_FOR_SENTENCE, results));
                }
            }
        }
        }
    }
    }