[evolution-exchange/gnome-3-2] Bug #659666 - Critical warning on folder rename



commit 53fd7a10f93d008b636189ae3bf6ccc78d0a7267
Author: Milan Crha <mcrha redhat com>
Date:   Tue Sep 27 17:57:04 2011 +0200

    Bug #659666 - Critical warning on folder rename

 camel/camel-exchange-utils.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-exchange-utils.c b/camel/camel-exchange-utils.c
index 47f91a3..123b2ec 100644
--- a/camel/camel-exchange-utils.c
+++ b/camel/camel-exchange-utils.c
@@ -1118,7 +1118,9 @@ get_folder_contents_online (ExchangeFolder *mfld,
 		m++;
 	}
 
-	camel_folder_changed (CAMEL_FOLDER (folder), ci);
+	/* folder might not be ready on folder rename */
+	if (folder)
+		camel_folder_changed (CAMEL_FOLDER (folder), ci);
 	camel_folder_change_info_free (ci);
 
 	/* If there are further messages beyond mfld->messages->len,



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