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

Commit 07c9e296 authored by George Mount's avatar George Mount
Browse files

Check for null mWebViewCore in selectText

 Bug 6306770

Change-Id: I83e70aef45ff6519e4e9eb70edae44efcecf6de8
parent 8b0d90ee
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4677,6 +4677,9 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
     * Select the word at the indicated content coordinates.
     */
    boolean selectText(int x, int y) {
        if (mWebViewCore == null) {
            return false;
        }
        mWebViewCore.sendMessage(EventHub.SELECT_WORD_AT, x, y);
        return true;
    }