[empathy] Assert that we get a non-null account passed when creating a contact for a log



commit 38cf0499b0329c0556cb2adc2460fb234c596a43
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Sun Sep 13 16:58:46 2009 +0100

    Assert that we get a non-null account passed when creating a contact for a log

 libempathy/empathy-contact.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 44d9dbe..aaa35d9 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -415,6 +415,7 @@ empathy_contact_new_for_log (EmpathyAccount *account,
                              gboolean is_user)
 {
   g_return_val_if_fail (id != NULL, NULL);
+  g_assert (account != NULL);
 
   return g_object_new (EMPATHY_TYPE_CONTACT,
       "account", account,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]