From 69b170ecfef06eb5a974f295cef6548cb2a63cba Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Mon, 5 Apr 2021 06:06:59 +0200 Subject: [PATCH] best-match: g_return_if_fail if not GeeCollection Closes #254 Closes #227 --- src/calls-best-match.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calls-best-match.c b/src/calls-best-match.c index 1efca27..72d1bea 100644 --- a/src/calls-best-match.c +++ b/src/calls-best-match.c @@ -86,6 +86,8 @@ update_best_match (CallsBestMatch *self) FolksIndividual *best_match = NULL; gboolean notify_has_individual = FALSE; + g_return_if_fail (GEE_IS_COLLECTION (individuals)); + if (!gee_collection_get_is_empty (GEE_COLLECTION (individuals))) best_match = gee_sorted_set_first (individuals);