summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2013-06-10 17:34:01 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2013-06-11 11:33:32 +0200
commit69cd22c4b53c2b25cf5a22180bfddf0784c8db33 (patch)
treeab228e7b90a8e39ecf88f45d9c035c830e87a3d3
parent351ba3a165a5c8e74cca0f8160c399d9bb669e29 (diff)
EmpathyNewChatroomDialog: Do not crash if the CM omitted handle-name
https://bugzilla.gnome.org/show_bug.cgi?id=698742
-rw-r--r--src/empathy-new-chatroom-dialog.c6
1 files changed, 6 insertions, 0 deletions
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));