[gnome-games/wip/exalm/strsplit: 2/2] collection-icon-view: Check filtering text for null
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/strsplit: 2/2] collection-icon-view: Check filtering text for null
- Date: Sat, 6 Oct 2018 19:06:57 +0000 (UTC)
commit 549773c5f7a881910fd85dac200cc1eef30fcee0
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Oct 7 00:05:36 2018 +0500
collection-icon-view: Check filtering text for null
Prevents runtime errors when setting null as filtering text.
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 f5e7e0d4..572a1784 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]