# HG changeset patch # User Stu Tomlinson # Date 1181523627 0 # Node ID 0e445e906cfdcdc083955366766643fa3c40054a # Parent b1754db7010b9f26ece9c8ee54d59d0e89ce6f00 Fix pidgin_blist_node_is_contact_expanded() to not crash on buddy list nodes that are not part of a contact diff -r b1754db7010b -r 0e445e906cfd pidgin/gtkblist.c --- a/pidgin/gtkblist.c Mon Jun 11 00:23:35 2007 +0000 +++ b/pidgin/gtkblist.c Mon Jun 11 01:00:27 2007 +0000 @@ -3733,8 +3733,11 @@ gboolean pidgin_blist_node_is_contact_expanded(PurpleBlistNode *node) { - if PURPLE_BLIST_NODE_IS_BUDDY(node) + if (PURPLE_BLIST_NODE_IS_BUDDY(node)) { node = node->parent; + if (node == NULL) + return FALSE; + } g_return_val_if_fail(PURPLE_BLIST_NODE_IS_CONTACT(node), FALSE);