diff --git a/src/calls-contacts-provider.c b/src/calls-contacts-provider.c index 687c1c5..24b9da5 100644 --- a/src/calls-contacts-provider.c +++ b/src/calls-contacts-provider.c @@ -30,6 +30,7 @@ #include "calls-contacts-provider.h" #include "calls-best-match.h" #include "calls-settings.h" +#include "util.h" #include #include @@ -420,7 +421,7 @@ calls_contacts_provider_lookup_id (CallsContactsProvider *self, g_return_val_if_fail (CALLS_IS_CONTACTS_PROVIDER (self), NULL); - if (!id || !*id) + if (STR_IS_NULL_OR_EMPTY (id)) return NULL; best_match = g_hash_table_lookup (self->best_matches, id);