aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index bf5958a5c3..d740e265a4 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -279,6 +279,12 @@ folder_tree_get_folder_info_cb (CamelStore *store,
return;
}
+ if (!folder_info) {
+ g_warn_if_fail (folder_info != NULL);
+ async_context_free (context);
+ return;
+ }
+
g_return_if_fail (folder_info != NULL);
/* Check if the store has been removed. */