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

Commit ef7af289 authored by Leon Scroggins's avatar Leon Scroggins
Browse files

Ensure that text passed in is non-null.

Bug:3183112
Change-Id: Icf00e2793cb9b62dd0ebb4f60b8ddcafea3e581f
parent 8e93e4f3
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -6529,8 +6529,11 @@ public class WebView extends AbsoluteLayout
                        // If the text entry has created more events, ignore
                        // this one.
                        } else if (msg.arg2 == mTextGeneration) {
                            mWebTextView.setTextAndKeepSelection(
                                    (String) msg.obj);
                            String text = (String) msg.obj;
                            if (null == text) {
                                text = "";
                            }
                            mWebTextView.setTextAndKeepSelection(text);
                        }
                    }
                    break;