From 15f1ed069f62259f545c86d253935afd9a968ba4 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Sat, 4 Mar 2006 10:11:58 +0000 Subject: fixes #330974. svn path=/trunk/; revision=31637 --- plugins/mail-to-task/mail-to-task.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mail-to-task/mail-to-task.c') diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index 65261ccf46..7290b1a2f1 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -92,7 +92,7 @@ set_description (ECalComponent *comp, CamelMimeMessage *message) camel_object_unref (mem); /* convert to UTF-8 string */ - if (str && content->mime_type->params->value) + if (str && content->mime_type->params && content->mime_type->params->value) { convert_str = g_convert (str, strlen (str), "UTF-8", content->mime_type->params->value, @@ -221,7 +221,7 @@ convert_to_task (GPtrArray *uid_array, struct _CamelFolder *folder) GThread *thread = NULL; GError *error = NULL; - client = e_cal_new (source, E_CAL_SOURCE_TYPE_TODO); + client = auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_TODO); if (!client) { char *uri = e_source_get_uri (source); -- cgit v1.2.3