[epiphany] Fix assertion in ephy-suggestion-model



commit f29c43f0f3fc8577fc60c6e9297054c630234581
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Thu Nov 14 17:45:14 2019 +0100

    Fix assertion in ephy-suggestion-model
    
    Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/925

 src/ephy-suggestion-model.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/ephy-suggestion-model.c b/src/ephy-suggestion-model.c
index cc4f34beb..9be813471 100644
--- a/src/ephy-suggestion-model.c
+++ b/src/ephy-suggestion-model.c
@@ -423,8 +423,10 @@ add_tabs (EphySuggestionModel *self,
 
     display_address_casefold = g_utf8_casefold (display_address, -1);
     query_casefold = g_utf8_casefold (query, -1);
-    if (title)
-      title_casefold = g_utf8_casefold (title, -1);
+    if (!title)
+      title = "";
+
+    title_casefold = g_utf8_casefold (title, -1);
 
     if ((title_casefold && strstr (title_casefold, query_casefold)) || strstr (display_address_casefold, 
query_casefold)) {
       escaped_title = g_markup_escape_text (title, -1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]