From 68ef0da647171dc544ef4e16859a9519529863c6 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 6 Sep 2011 09:03:07 +0200 Subject: empathy_contact_dup_from_folks_individual: add a debug msg if no contact is found In most cases that's probably either an Empathy or Folks issue, so it's good to have some info to help debugging. --- libempathy/empathy-utils.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index ec41f9b38..929779a78 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -725,6 +725,12 @@ empathy_contact_dup_from_folks_individual (FolksIndividual *individual) } g_clear_object (&iter); + if (contact == NULL) + { + DEBUG ("Can't create an EmpathyContact for Individual %s", + folks_individual_get_id (individual)) + } + return contact; } -- cgit v1.2.3