changeset 17987:1b6db70bdab2

Fix a crash exposed by nullprpl.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 01 Jun 2007 23:39:11 +0000
parents 8edcfcddbcc7
children f78b5aee202d
files finch/gntblist.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntblist.c	Fri Jun 01 03:35:45 2007 +0000
+++ b/finch/gntblist.c	Fri Jun 01 23:39:11 2007 +0000
@@ -215,6 +215,9 @@
 	if (list->ui_data == NULL)
 		return;   /* XXX: this is probably the place to auto-join chats */
 
+	if (ggblist->window == NULL)
+		return;
+
 	if (node->ui_data != NULL) {
 		gnt_tree_change_text(GNT_TREE(ggblist->tree), node,
 				0, get_display_name(node));