From b19d8cde60b98f0f86a49a8eed0885222e808f2f Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 17 Feb 2009 16:11:48 +0100 Subject: Make sure to not ref a NULL object --- libempathy/empathy-contact.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 09da70fde..d248b2dd7 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -274,6 +274,9 @@ set_tp_contact (EmpathyContact *contact, { EmpathyContactPriv *priv = GET_PRIV (contact); + if (tp_contact == NULL) + return; + g_assert (priv->tp_contact == NULL); priv->tp_contact = g_object_ref (tp_contact); priv->presence = empathy_contact_get_presence (contact); -- cgit v1.2.3