[epiphany/gnome-3-30] 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-30] web-view: Handle NULL URIs in ephy_web_view_set_address()
- Date: Thu, 29 Nov 2018 22:35:24 +0000 (UTC)
commit 9da12c4843143124d2f57e968b5034e30048834b
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 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]