[evolution-data-server] Add a null check while accessing folder_get_fullname - imapx



commit eeba4e32bb06136b3f505ffe7ed49e7305cebc8b
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Mon May 3 09:46:17 2010 +0530

    Add a null check while accessing folder_get_fullname - imapx

 camel/providers/imapx/camel-imapx-server.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 14c2d51..86c291e 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -980,7 +980,8 @@ imapx_job_matches (const gchar *folder_name, CamelIMAPXJob *job, guint32 type, c
 {
 	const gchar *full_name;
 
-	full_name = camel_folder_get_full_name (job->folder);
+	if (job->folder)
+		full_name = camel_folder_get_full_name (job->folder);
 
 	switch (job->type) {
 		case IMAPX_JOB_GET_MESSAGE:



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