diff options
-rw-r--r-- | libempathy/empathy-contact.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |