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

Commit 4c3ca701 authored by Patrick Scott's avatar Patrick Scott
Browse files

Check for a null url before trying to load it.

There are some bad things that happen if WebCore gets a blank url.
parent 0c421c0d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1235,6 +1235,9 @@ public class WebView extends AbsoluteLayout
     * @param url The url of the resource to load.
     */
    public void loadUrl(String url) {
        if (url == null) {
            return;
        }
        switchOutDrawHistory();
        mWebViewCore.sendMessage(EventHub.LOAD_URL, url);
        clearTextEntry();