1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-12 15:47:35 +00:00

best-match: g_return_if_fail if not GeeCollection

Closes #254
Closes #227
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-04-05 06:06:59 +02:00
parent f8a57edc6d
commit 69b170ecfe

View file

@ -86,6 +86,8 @@ update_best_match (CallsBestMatch *self)
FolksIndividual *best_match = NULL; FolksIndividual *best_match = NULL;
gboolean notify_has_individual = FALSE; gboolean notify_has_individual = FALSE;
g_return_if_fail (GEE_IS_COLLECTION (individuals));
if (!gee_collection_get_is_empty (GEE_COLLECTION (individuals))) if (!gee_collection_get_is_empty (GEE_COLLECTION (individuals)))
best_match = gee_sorted_set_first (individuals); best_match = gee_sorted_set_first (individuals);