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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c
index 0cddb62bf2..0cabb9b978 100644
--- a/plugins/mail-to-task/mail-to-task.c
+++ b/plugins/mail-to-task/mail-to-task.c
@@ -199,6 +199,7 @@ set_attachments (ECal *client, ECalComponent *comp, CamelMimeMessage *message)
int parts, i;
GSList *list = NULL;
const char *uid;
+ char *store_uri;
char *store_dir;
CamelDataWrapper *content;
@@ -211,7 +212,10 @@ set_attachments (ECal *client, ECalComponent *comp, CamelMimeMessage *message)
return;
e_cal_component_get_uid (comp, &uid);
- store_dir = g_filename_from_uri (e_cal_get_local_attachment_store (client), NULL, NULL);
+ store_uri = e_cal_get_local_attachment_store (client);
+ if (!store_uri)
+ return;
+ store_dir = g_filename_from_uri (store_uri, NULL, NULL);
for (i = 1; i < parts; i++)
{