aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/templates
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-12-04 05:36:40 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:07 +0800
commit1182cdfec8e5986e36ac6bc4f4fa9ba32599d7d5 (patch)
tree858874a3d853f74b28fb6c91b7f3489904fc6255 /plugins/templates
parent989c370729b764423d4528b314cb8490c3df2b3d (diff)
downloadgsoc2013-evolution-1182cdfec8e5986e36ac6bc4f4fa9ba32599d7d5.tar
gsoc2013-evolution-1182cdfec8e5986e36ac6bc4f4fa9ba32599d7d5.tar.gz
gsoc2013-evolution-1182cdfec8e5986e36ac6bc4f4fa9ba32599d7d5.tar.bz2
gsoc2013-evolution-1182cdfec8e5986e36ac6bc4f4fa9ba32599d7d5.tar.lz
gsoc2013-evolution-1182cdfec8e5986e36ac6bc4f4fa9ba32599d7d5.tar.xz
gsoc2013-evolution-1182cdfec8e5986e36ac6bc4f4fa9ba32599d7d5.tar.zst
gsoc2013-evolution-1182cdfec8e5986e36ac6bc4f4fa9ba32599d7d5.zip
Avoid a crash when building templates menu.
Diffstat (limited to 'plugins/templates')
-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 =