From 1182cdfec8e5986e36ac6bc4f4fa9ba32599d7d5 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 3 Dec 2010 15:36:40 -0600 Subject: Avoid a crash when building templates menu. --- plugins/templates/templates.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/templates/templates.c') 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 = -- cgit v1.2.3