comparison finch/gntblist.c @ 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 464840043c66
children 55a90b3fb1a1
comparison
equal deleted inserted replaced
17986:8edcfcddbcc7 17987:1b6db70bdab2
212 happens, so maybe someone will figure it out. */ 212 happens, so maybe someone will figure it out. */
213 g_return_if_fail(node != NULL); 213 g_return_if_fail(node != NULL);
214 214
215 if (list->ui_data == NULL) 215 if (list->ui_data == NULL)
216 return; /* XXX: this is probably the place to auto-join chats */ 216 return; /* XXX: this is probably the place to auto-join chats */
217
218 if (ggblist->window == NULL)
219 return;
217 220
218 if (node->ui_data != NULL) { 221 if (node->ui_data != NULL) {
219 gnt_tree_change_text(GNT_TREE(ggblist->tree), node, 222 gnt_tree_change_text(GNT_TREE(ggblist->tree), node,
220 0, get_display_name(node)); 223 0, get_display_name(node));
221 gnt_tree_sort_row(GNT_TREE(ggblist->tree), node); 224 gnt_tree_sort_row(GNT_TREE(ggblist->tree), node);