aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index b0c20a4b09..270e59decf 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -2049,7 +2049,7 @@ find_next_in_range (ETree *et, gint start, gint end, ETreePathFunc func, gpointe
for (row = start; row <= end; row++) {
path = e_tree_table_adapter_node_at_row (et->priv->etta, row);
- if (func (et->priv->model, path, data))
+ if (path && func (et->priv->model, path, data))
return path;
}
@@ -2064,7 +2064,7 @@ find_prev_in_range (ETree *et, gint start, gint end, ETreePathFunc func, gpointe
for (row = start; row >= end; row--) {
path = e_tree_table_adapter_node_at_row (et->priv->etta, row);
- if (func (et->priv->model, path, data))
+ if (path && func (et->priv->model, path, data))
return path;
}