diff options
Diffstat (limited to 'widgets/table/e-table-selection-model.c')
-rw-r--r-- | widgets/table/e-table-selection-model.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/table/e-table-selection-model.c b/widgets/table/e-table-selection-model.c index 9079ce8623..ffe8cfa947 100644 --- a/widgets/table/e-table-selection-model.c +++ b/widgets/table/e-table-selection-model.c @@ -483,6 +483,9 @@ e_table_selection_model_selected_count (ETableSelectionModel *selection) int i; int last; + if (!selection->selection) + return 0; + count = 0; last = BOX(selection->row_count - 1); |