From 939ed95a486a461c55eda6596a15eab2e4e9b166 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Thu, 19 Sep 2002 17:20:21 +0000 Subject: guard against NULL nodes. 2002-09-18 Mike Kestner * e-tree-model.c (e_tree_model_is_expandable): guard against NULL nodes. svn path=/trunk/; revision=18118 --- widgets/table/e-tree-model.c | 1 + 1 file changed, 1 insertion(+) (limited to 'widgets') diff --git a/widgets/table/e-tree-model.c b/widgets/table/e-tree-model.c index 725b4f02fd..193a79914d 100644 --- a/widgets/table/e-tree-model.c +++ b/widgets/table/e-tree-model.c @@ -564,6 +564,7 @@ gboolean e_tree_model_node_is_expandable (ETreeModel *etree, ETreePath node) { g_return_val_if_fail(etree != NULL, FALSE); + g_return_val_if_fail(node != NULL, FALSE); if (ETM_CLASS(etree)->is_expandable) return ETM_CLASS(etree)->is_expandable(etree, node); -- cgit