Commit 83014ad6 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.


(cherry picked from commit 549773c5)
parent 049836ec
Pipeline #34270 passed with stages
in 20 minutes and 54 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