]> git.0d.be Git - empathy.git/commitdiff
individual_store_contact_sort: account is not supposed to be NULL
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 15 Nov 2010 10:38:43 +0000 (11:38 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 15 Nov 2010 10:38:43 +0000 (11:38 +0100)
libempathy-gtk/empathy-individual-store.c

index 96bea8042577371c8ad577fd92bf8a387f529afe..807afb2a220c174567817b1613ca14565ae71e15 100644 (file)
@@ -1350,6 +1350,9 @@ individual_store_contact_sort (FolksIndividual *individual_a,
   account_a = empathy_contact_get_account (contact_a);
   account_b = empathy_contact_get_account (contact_b);
 
+  g_assert (account_a != NULL);
+  g_assert (account_b != NULL);
+
   /* protocol */
   ret_val = g_strcmp0 (tp_account_get_protocol (account_a),
       tp_account_get_protocol (account_b));