If the connection has been invalidated, it has been removed from
priv->connections so we should check to avoid using a NULL pointer (#615970).
connection = empathy_contact_get_connection (contact);
connection_data = g_hash_table_lookup (priv->connections, connection);
+ if (connection_data == NULL)
+ {
+ /* Connection has been invalidated */
+ goto out;
+ }
/* The contact handle might not be known yet */
request_data = new_dispatcher_request_data (self, connection,
dispatcher_request_channel (request_data);
+out:
g_object_unref (self);
}