aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/templates/templates.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/templates/templates.c b/plugins/templates/templates.c
index bca45f040f..625c70245b 100644
--- a/plugins/templates/templates.c
+++ b/plugins/templates/templates.c
@@ -618,6 +618,11 @@ build_template_menus_recurse (GtkUIManager *ui_manager,
/* FIXME Not passing a GCancellable or GError here. */
template = camel_folder_get_message_sync (
folder, uid, NULL, NULL);
+
+ /* FIXME Do something more intelligent with errors. */
+ if (template == NULL)
+ continue;
+
g_object_ref (template);
action_label =