[Pkg-telepathy-commits] [empathy] 09/39: EmpathyNewChatroomDialog: Do not crash if the CM omitted handle-name

Simon McVittie smcv at debian.org
Wed Jan 29 12:53:12 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository empathy.

commit 69cd22c4b53c2b25cf5a22180bfddf0784c8db33
Author: Xavier Claessens <xavier.claessens at 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 file changed, 6 insertions(+)

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));
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/empathy.git



More information about the Pkg-telepathy-commits mailing list