summaryrefslogtreecommitdiff
path: root/libempathy
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-09-13 16:58:46 +0100
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-09-13 17:45:01 +0100
commit38cf0499b0329c0556cb2adc2460fb234c596a43 (patch)
tree81363872f887158e5aaf46b9f2adb918996daaf3 /libempathy
parent6d7f7edd8ee8290d0e07441523d6c9e44ed0a38d (diff)
Assert that we get a non-null account passed when creating a contact for a log
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 44d9dbeed..aaa35d9e9 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,