From 5737590dd0cfc710f2a7cfa4f546b5c936bc4889 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 12 Oct 2017 15:27:33 -0400 Subject: mq_web_view_load_uri(): Check for NULL uri Fixes: (marquee:xxxxx): GLib-CRITICAL **: g_str_has_prefix: assertion 'str != NULL' failed ** (marquee:xxxxx): CRITICAL **: void webkit_web_view_load_uri(WebKitWebView*, const gchar*): assertion 'uri' failed --- (limited to 'src') diff --git a/src/web-view.c b/src/web-view.c index 4e96acb..c3ffbca 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -716,6 +716,11 @@ mq_web_view_load_uri(MqWebView *web_view, const gchar *uri) { gchar *rw_uri; + if (!uri) { + /* Happens during object construction. */ + return; + } + if (web_view->uri) { g_free(web_view->uri); } -- cgit v0.9.1