From 69cd22c4b53c2b25cf5a22180bfddf0784c8db33 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 10 Jun 2013 17:34:01 +0200 Subject: [PATCH] EmpathyNewChatroomDialog: Do not crash if the CM omitted handle-name https://bugzilla.gnome.org/show_bug.cgi?id=698742 --- src/empathy-new-chatroom-dialog.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c index 3ce59ab8..cb8f2a1f 100644 --- a/src/empathy-new-chatroom-dialog.c +++ b/src/empathy-new-chatroom-dialog.c @@ -416,6 +416,12 @@ new_chatroom_dialog_got_room_cb (TpRoomList *room_list, const gchar *invite_only; gchar *tmp; + if (tp_str_empty (tp_room_info_get_handle_name (room))) + { + DEBUG ("Room handle name is empty - Broken CM"); + return; + } + DEBUG ("New room listed: %s (%s)", tp_room_info_get_name (room), tp_room_info_get_handle_name (room)); -- 2.39.2