From 427a4045014b1e1d7cba62a018cfee2e43f64143 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Fri, 4 Apr 2003 16:16:35 +0000 Subject: guard against root == NULL. Bug #39491. 2003-04-04 Mike Kestner * e-tree-table-adapter.c (etta_sort_info_changed): guard against root == NULL. Bug #39491. svn path=/trunk/; revision=20668 --- widgets/table/e-tree-table-adapter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/widgets/table/e-tree-table-adapter.c b/widgets/table/e-tree-table-adapter.c index 65bdb3cccb..e167a1476f 100644 --- a/widgets/table/e-tree-table-adapter.c +++ b/widgets/table/e-tree-table-adapter.c @@ -799,6 +799,9 @@ etta_proxy_node_request_collapse (ETreeModel *etm, ETreePath node, ETreeTableAda static void etta_sort_info_changed (ETableSortInfo *sort_info, ETreeTableAdapter *etta) { + if (!etta->priv->root) + return; + e_table_model_pre_change(E_TABLE_MODEL(etta)); resort_node(etta, etta->priv->root, TRUE); fill_map(etta, 0, etta->priv->root); -- cgit