From afac6edb53f68a1c1c510eeaa1360c5a34e2e659 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Thu, 13 Feb 2003 19:16:56 +0000 Subject: guard for null paths if save_id lookup fails. 2003-02-13 Mike Kestner * e-tree-table-adapter.c (*_load_expanded_state): guard for null paths if save_id lookup fails. svn path=/trunk/; revision=19904 --- widgets/table/e-tree-table-adapter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widgets/table/e-tree-table-adapter.c b/widgets/table/e-tree-table-adapter.c index 3fae35737d..e3e8bba9ac 100644 --- a/widgets/table/e-tree-table-adapter.c +++ b/widgets/table/e-tree-table-adapter.c @@ -932,7 +932,8 @@ e_tree_table_adapter_load_expanded_state (ETreeTableAdapter *etta, const char *f } path = e_tree_model_get_node_by_id(etta->priv->source, id); - e_tree_table_adapter_node_set_expanded(etta, path, !model_default); + if (path) + e_tree_table_adapter_node_set_expanded(etta, path, !model_default); } xmlFreeDoc (doc); -- cgit