aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-selection-model.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-08-25 06:03:48 +0800
committerChris Lahey <clahey@src.gnome.org>2000-08-25 06:03:48 +0800
commitaa9505c5aec5d05fab25116d2425cf27afb58c41 (patch)
tree6881b05eae6b2f67d9c64cec9436f10a22ced744 /widgets/table/e-table-selection-model.c
parentf9d5c373587332aac4fb4e012ad0c99c3880e8bf (diff)
downloadgsoc2013-evolution-aa9505c5aec5d05fab25116d2425cf27afb58c41.tar.gz
gsoc2013-evolution-aa9505c5aec5d05fab25116d2425cf27afb58c41.tar.zst
gsoc2013-evolution-aa9505c5aec5d05fab25116d2425cf27afb58c41.zip
Check for selection->selection being NULL in
2000-08-24 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c: Check for selection->selection being NULL in e_table_selection_model_selected_count. svn path=/trunk/; revision=5025
Diffstat (limited to 'widgets/table/e-table-selection-model.c')
-rw-r--r--widgets/table/e-table-selection-model.c3
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);