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

Commit b748186c authored by Michael Kolb's avatar Michael Kolb
Browse files

fix NPE in getSearchBox

    Bug: 3510741
    added null check

Change-Id: I256375b2168942f0b4b700912f2f2ae40ce90492
parent 268c7111
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5036,6 +5036,9 @@ public class WebView extends AbsoluteLayout
     * @hide pending API Council approval.
     */
    public SearchBox getSearchBox() {
        if ((mWebViewCore == null) || (mWebViewCore.getBrowserFrame() == null)) {
            return null;
        }
        return mWebViewCore.getBrowserFrame().getSearchBox();
    }