[epiphany/mcatanzaro/#590] web-view: Handle NULL URIs in ephy_web_view_set_address()
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/#590] web-view: Handle NULL URIs in ephy_web_view_set_address()
- Date: Tue, 27 Nov 2018 20:29:32 +0000 (UTC)
commit 1e7d58bc54f43d2af13f4f3daab5d0560bcf1875
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Tue Nov 27 14:27:49 2018 -0600
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 70b6472b6..af1dfc298 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1107,7 +1107,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 ? ephy_uri_decode (view->address) : NULL;
_ephy_web_view_set_is_blank (view, ephy_embed_utils_url_is_empty (address));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]