aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mail-to-task/mail-to-task.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mail-to-task/mail-to-task.c')
-rw-r--r--plugins/mail-to-task/mail-to-task.c4
1 files changed, 2 insertions, 2 deletions
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);