aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/select-names/e-select-names-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/component/select-names/e-select-names-model.c')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-model.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-model.c b/addressbook/gui/component/select-names/e-select-names-model.c
index 3cdd5913a5..3fd5249a26 100644
--- a/addressbook/gui/component/select-names/e-select-names-model.c
+++ b/addressbook/gui/component/select-names/e-select-names-model.c
@@ -372,6 +372,10 @@ e_select_names_model_import_destinationv (ESelectNamesModel *model,
destv = e_destination_importv (destinationv);
e_select_names_model_delete_all (model);
+
+ if (destv == NULL)
+ return;
+
for (i = 0; destv[i]; i++) {
e_destination_use_card (destv[i], send_changed, model);
e_select_names_model_append (model, destv[i]);