aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/pst-import/pst-importer.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pst-import/pst-importer.c')
-rw-r--r--plugins/pst-import/pst-importer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/pst-import/pst-importer.c b/plugins/pst-import/pst-importer.c
index e691962f67..768d1b17c0 100644
--- a/plugins/pst-import/pst-importer.c
+++ b/plugins/pst-import/pst-importer.c
@@ -867,7 +867,7 @@ pst_import_folders (PstImporter *m,
d_ptr = d_ptr->next;
} else {
- while (d_ptr != topitem && d_ptr->next == NULL) {
+ while (d_ptr && d_ptr != topitem && d_ptr->next == NULL) {
if (m->folder) {
g_object_unref (m->folder);
m->folder = NULL;