]> git.0d.be Git - empathy.git/blobdiff - src/empathy-new-chatroom-dialog.c
EmpathyNewChatroomDialog: Do not crash if the CM omitted handle-name
[empathy.git] / src / empathy-new-chatroom-dialog.c
index 3ce59ab8fdb3c63781a0112b25c6e0ed1aaae945..cb8f2a1fb526ef584b938fb340e284dd1bb1cba3 100644 (file)
@@ -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));