[evolution-data-server/gnome-3-26] Bug 789549 - [IMAPx] Runtime warning after message copy/move



commit b5e5751746c236bd98d86216c80207709db10945
Author: Milan Crha <mcrha redhat com>
Date:   Wed Nov 15 18:47:17 2017 +0100

    Bug 789549 - [IMAPx] Runtime warning after message copy/move

 src/camel/providers/imapx/camel-imapx-server.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/camel/providers/imapx/camel-imapx-server.c b/src/camel/providers/imapx/camel-imapx-server.c
index a283ed5..c982824 100644
--- a/src/camel/providers/imapx/camel-imapx-server.c
+++ b/src/camel/providers/imapx/camel-imapx-server.c
@@ -4270,10 +4270,14 @@ camel_imapx_server_copy_message_sync (CamelIMAPXServer *is,
        data_uids = g_ptr_array_new ();
 
        for (ii = 0; ii < uids->len; ii++) {
+               CamelMessageInfo *source_info;
                gchar *uid = (gchar *) camel_pstring_strdup (uids->pdata[ii]);
 
                g_ptr_array_add (data_uids, uid);
-               g_hash_table_insert (source_infos, uid, camel_folder_summary_get 
(camel_folder_get_folder_summary (folder), uid));
+
+               source_info = camel_folder_summary_get (camel_folder_get_folder_summary (folder), uid);
+               if (source_info)
+                       g_hash_table_insert (source_infos, uid, source_info);
        }
 
        g_ptr_array_sort (data_uids, (GCompareFunc) imapx_uids_array_cmp);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]