From b75db7d1c64914818f389347f76e1953192597b0 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 27 Jun 2020 06:29:58 +0200 Subject: [PATCH] stringfilter: Don't crash if the expression returns "" --- gtk/gtkstringfilter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkstringfilter.c b/gtk/gtkstringfilter.c index ada86ea401..3fa924e9c3 100644 --- a/gtk/gtkstringfilter.c +++ b/gtk/gtkstringfilter.c @@ -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) {