[evolution-data-server/work: 3/3] Fixes bug 494490 (bnc) - Fixes a crash while moving messages twice.



commit ebf0b4f6a0a9ae0d3ec712bd2325b5998b75e305
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Tue May 19 18:06:01 2009 +0530

    Fixes bug 494490 (bnc) - Fixes a crash while moving messages twice.
---
 camel/providers/groupwise/camel-groupwise-folder.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/camel/providers/groupwise/camel-groupwise-folder.c b/camel/providers/groupwise/camel-groupwise-folder.c
index 69f9302..bf6bf7f 100644
--- a/camel/providers/groupwise/camel-groupwise-folder.c
+++ b/camel/providers/groupwise/camel-groupwise-folder.c
@@ -2374,6 +2374,12 @@ groupwise_transfer_messages_to (CamelFolder *source, GPtrArray *uids,
 		count = camel_folder_summary_count (destination->summary);
 
 		info = camel_folder_summary_uid (source->summary, uids->pdata[index]);
+		if (!info) {
+			g_warning ("Could not find the message: its either deleted or moved already");
+			index++;
+			continue;
+		}
+
 		gw_info = (CamelGroupwiseMessageInfo *) info;
 		if (gw_info && (gw_info->info.flags & CAMEL_MESSAGE_FOLDER_FLAGGED)) {
 			do_flags_diff (&diff, gw_info->server_flags, gw_info->info.flags);



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