[evolution/webkit] Avoid a crash when building templates menu.
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit] Avoid a crash when building templates menu.
- Date: Mon, 11 Jul 2011 13:52:28 +0000 (UTC)
commit 99b91fa6dd9ed12f5f70b1ba0e58addac74a1b5d
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Dec 3 15:36:40 2010 -0600
Avoid a crash when building templates menu.
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 bca45f0..625c702 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 =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]