stringfilter: Don't crash if the expression returns ""

This commit is contained in:
Benjamin Otte 2020-06-27 06:29:58 +02:00
parent b03069bdf6
commit b75db7d1c6

View File

@ -110,9 +110,9 @@ gtk_string_filter_match (GtkFilter *filter,
!gtk_expression_evaluate (self->expression, item, &value))
return FALSE;
s = g_value_get_string (&value);
if (s == NULL)
return FALSE;
prepared = gtk_string_filter_prepare (self, s);
if (prepared == NULL)
return FALSE;
switch (self->match_mode)
{