From 9da12c4843143124d2f57e968b5034e30048834b Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Tue, 27 Nov 2018 14:27:49 -0600 Subject: [PATCH] web-view: Handle NULL URIs in ephy_web_view_set_address() This is possible if the web view has not loaded anything yet. Fixes #590 --- embed/ephy-web-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 835cd6e0b..84fa0a49a 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -1095,7 +1095,7 @@ ephy_web_view_set_address (EphyWebView *view, view->address = g_strdup (address); g_free (view->display_address); - view->display_address = ephy_uri_decode (view->address); + view->display_address = view->address != NULL ? ephy_uri_decode (view->address) : NULL; _ephy_web_view_set_is_blank (view, ephy_embed_utils_url_is_empty (address)); -- 2.18.1