[gnome-games/cherry-pick-549773c5] collection-icon-view: Check filtering text for null
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/cherry-pick-549773c5] collection-icon-view: Check filtering text for null
- Date: Sat, 6 Oct 2018 19:53:31 +0000 (UTC)
commit 83014ad65c6816c8c26309c2a2e5772cd9044860
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sat Oct 6 19:05:36 2018 +0000
collection-icon-view: Check filtering text for null
Prevents runtime errors when setting null as filtering text.
(cherry picked from commit 549773c5f7a881910fd85dac200cc1eef30fcee0)
src/ui/collection-icon-view.vala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/ui/collection-icon-view.vala b/src/ui/collection-icon-view.vala
index dd1b8dbb..1a06fc4a 100644
--- a/src/ui/collection-icon-view.vala
+++ b/src/ui/collection-icon-view.vala
@@ -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 ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]