_tp_base_client_handle_channels does not check error for null (assertion) thus segfault if so
Submitted by Alban Browaeys
Assigned to Telepathy bugs list
Description
Created attachment 62098 check for null error on handle channels
currently empathy_tp_chat_new assert on TP_IS_ACCOUNT (account) . It looks like this is why I get a channel null and error null in _tp_base_client_handle_channels. But if channel is null the debug log derference error (and it is null here) for the message. Segfault ensue. This patch check for error being non null. Else it tells an assertion happened instead of error->message.
Attachment 62098, "check for null error on handle channels":
0001-TpBaseClient-_tp_base_client_handle_channels-does-not-.txt