[epiphany/gnome-3-28] 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/gnome-3-28] web-view: Handle NULL URIs in ephy_web_view_set_address()
- Date: Wed, 20 Feb 2019 21:48:09 +0000 (UTC)
commit 3f848d18a0853bc6a45b409176f44e35fc89a92f
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 aabeed49a..a43ed8dc7 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1029,7 +1029,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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]