changeset 21752:9c2230fe2217

Fix a crash that occurs when creating the "Move To" menu for buddies that aren't on your list. Fixes #4217.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 03 Dec 2007 22:35:26 +0000
parents 7632edbf0d00
children e9760c22bab5
files pidgin/gtkblist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 &&