If the filter property on the entry is NULL the entry is now hidden instead of causing a crash

This commit is contained in:
Scoopta 2019-08-28 21:15:29 -07:00
parent a499c1cacd
commit 76d77a43ec

View File

@ -451,6 +451,9 @@ static gboolean do_filter(GtkListBoxRow* row, gpointer data) {
if(filter == NULL || strcmp(filter, "") == 0) { if(filter == NULL || strcmp(filter, "") == 0) {
return TRUE; return TRUE;
} }
if(text == NULL) {
return FALSE;
}
if(strcasestr(text, filter) != NULL) { if(strcasestr(text, filter) != NULL) {
return TRUE; return TRUE;
} }