diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-12-04 05:36:40 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-12-04 05:36:40 +0800 |
commit | ffd6e528086d2c752f61c71332c3526d11473661 (patch) | |
tree | d697cc91f3eef63b4e565efa73be01e334b3e89c | |
parent | ab0430a3f37b01f104d8a4556fdb527c0bd92116 (diff) | |
download | gsoc2013-evolution-ffd6e528086d2c752f61c71332c3526d11473661.tar gsoc2013-evolution-ffd6e528086d2c752f61c71332c3526d11473661.tar.gz gsoc2013-evolution-ffd6e528086d2c752f61c71332c3526d11473661.tar.bz2 gsoc2013-evolution-ffd6e528086d2c752f61c71332c3526d11473661.tar.lz gsoc2013-evolution-ffd6e528086d2c752f61c71332c3526d11473661.tar.xz gsoc2013-evolution-ffd6e528086d2c752f61c71332c3526d11473661.tar.zst gsoc2013-evolution-ffd6e528086d2c752f61c71332c3526d11473661.zip |
Avoid a crash when building templates menu.
-rw-r--r-- | plugins/templates/templates.c | 5 |
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 = |