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

Commit b641abf6 authored by Grace Kloba's avatar Grace Kloba
Browse files

Add a null checking to avoid crash.

parent 38456260
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -2908,6 +2908,8 @@ public class WebView extends AbsoluteLayout
                getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
                getContext().getSystemService(Context.INPUT_METHOD_SERVICE);


        if (isTextView) {
        if (isTextView) {
            if (mWebTextView == null) return;

            imm.showSoftInput(mWebTextView, 0);
            imm.showSoftInput(mWebTextView, 0);
            // Now we need to fake a touch event to place the cursor where the
            // Now we need to fake a touch event to place the cursor where the
            // user touched.
            // user touched.