[empathy/gnome-3-8] EmpathyNewChatroomDialog: Do not crash if the CM omitted handle-name



commit 69cd22c4b53c2b25cf5a22180bfddf0784c8db33
Author: Xavier Claessens <xavier claessens collabora co uk>
Date:   Mon Jun 10 17:34:01 2013 +0200

    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 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c
index 3ce59ab..cb8f2a1 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));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]