diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2018-11-27 14:27:49 -0600 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2018-11-29 16:34:32 -0600 |
commit | 9da12c4843143124d2f57e968b5034e30048834b (patch) | |
tree | 5bd5c88da5cbba29868f859428171557d22e8f38 | |
parent | 6e76875dd82ffa822fce559def3b3dbf6d2b0008 (diff) | |
download | epiphany-9da12c4843143124d2f57e968b5034e30048834b.tar.gz |
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
-rw-r--r-- | embed/ephy-web-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |