Fix a crash that occurs when creating the "Move To" menu for buddies that aren't on your list. Fixes #4217.

Mon, 03 Dec 2007 22:35:26 +0000

author
Daniel Atallah <datallah@pidgin.im>
date
Mon, 03 Dec 2007 22:35:26 +0000
changeset 21867
f777572e7c44
parent 21866
dbaaa235297b
child 21868
3fe10e03d4f0

Fix a crash that occurs when creating the "Move To" menu for buddies that aren't on your list. Fixes #4217.

pidgin/gtkblist.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkblist.c	Mon Dec 03 21:26:54 2007 +0000
+++ b/pidgin/gtkblist.c	Mon Dec 03 22:35:26 2007 +0000
@@ -1398,7 +1398,7 @@
 	pidgin_append_blist_node_proto_menu(menu, buddy->account->gc, node);
 	pidgin_append_blist_node_extended_menu(menu, node);
 
-	if (!contact_expanded)
+	if (!contact_expanded && contact != NULL)
 		pidgin_append_blist_node_move_to_menu(menu, (PurpleBlistNode *)contact);
 
 	if (node->parent && node->parent->child->next && 

mercurial