aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-tree-model.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/table/e-tree-model.c b/widgets/table/e-tree-model.c
index 40e54a1667..e8685a8dc8 100644
--- a/widgets/table/e-tree-model.c
+++ b/widgets/table/e-tree-model.c
@@ -199,9 +199,9 @@ etree_set_expanded_recurse (ETreeModel *etm, ETreePath* node, gboolean expanded)
static ETreePath *
etree_node_at_row (ETreeModel *etree, int row)
{
- GNode *node = g_array_index (etree->row_array, GNode*, row);
+ g_return_val_if_fail (row < etree->row_array->len, NULL);
- return node;
+ return g_array_index (etree->row_array, GNode*, row);
}