Commit 549773c5 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

collection-icon-view: Check filtering text for null

Prevents runtime errors when setting null as filtering text.
parent 63c79aec
Pipeline #34265 passed with stages
in 20 minutes and 10 seconds
......@@ -7,7 +7,9 @@ private class Games.CollectionIconView : Gtk.Bin {
private string[] filtering_terms;
public string filtering_text {
set {
filtering_terms = value.split (" ");
if (value != null)
filtering_terms = value.split (" ");
flow_box.invalidate_filter ();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment