diff options
-rw-r--r-- | mail/importers/pine-importer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/importers/pine-importer.c b/mail/importers/pine-importer.c index f5ae3fdd28..fe636204c4 100644 --- a/mail/importers/pine-importer.c +++ b/mail/importers/pine-importer.c @@ -198,6 +198,11 @@ import_contacts (void) source = E_SOURCE (list->data); client = e_book_client_connect_sync (source, NULL, &error); + } else { + /* No address books exist. */ + g_warning ("%s: No address books exist.", G_STRFUNC); + fclose (fp); + return; } g_list_free_full (list, (GDestroyNotify) g_object_unref); |