]> git.0d.be Git - empathy.git/commitdiff
empathy_contact_dup_from_folks_individual: add a debug msg if no contact is found
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 6 Sep 2011 07:03:07 +0000 (09:03 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 6 Sep 2011 07:03:07 +0000 (09:03 +0200)
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

index ec41f9b388f8ce182d7c221dc96d168a98f7697a..929779a78039119ee8da163bbeed8a13a59ca439 100644 (file)
@@ -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;
 }