diff options
-rw-r--r-- | libempathy/empathy-contact.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index ed7af6c38..16f1dc900 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -683,12 +683,15 @@ contact_is_tpl_entity (gpointer key, { EmpathyContact *contact = value; FindContactData *data = user_data; + TpAccount *account = empathy_contact_get_account (contact); + const gchar *path = NULL; + + if (account != NULL) + path = tp_proxy_get_object_path (account); return !tp_strdiff (empathy_contact_get_id (contact), tpl_entity_get_identifier (data->entity)) && - !tp_strdiff (tp_proxy_get_object_path (data->account), - tp_proxy_get_object_path ( - empathy_contact_get_account (contact))); + !tp_strdiff (tp_proxy_get_object_path (data->account), path); } EmpathyContact * |