From a33709547e482bfb7c0c0b3bf2fb491a28b61dab Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 21 May 2002 06:24:29 +0000 Subject: Check for path being NULL. 2002-05-21 Christopher James Lahey * e-tree-sorted.c (ets_proxy_node_request_collapse): Check for path being NULL. * e-tree-table-adapter.c (e_tree_table_adapter_load_expanded_state): Rebuild the tree after loading the state. svn path=/trunk/; revision=16963 --- widgets/table/e-tree-sorted.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'widgets/table/e-tree-sorted.c') diff --git a/widgets/table/e-tree-sorted.c b/widgets/table/e-tree-sorted.c index 2244f1ba11..16ee5160eb 100644 --- a/widgets/table/e-tree-sorted.c +++ b/widgets/table/e-tree-sorted.c @@ -1173,7 +1173,9 @@ static void ets_proxy_node_request_collapse (ETreeModel *etm, ETreePath node, ETreeSorted *ets) { ETreeSortedPath *path = find_path(ets, node); - e_tree_model_node_request_collapse(E_TREE_MODEL(ets), path); + if (path) { + e_tree_model_node_request_collapse(E_TREE_MODEL(ets), path); + } } static void -- cgit