[evolution-ews] Handle situation when email is NULL such as in POST items



commit 96eaa76153a8f955d9ad8a4a1e6e7249286909a8
Author: Shiran Stan-Meleh <shiran stan-meleh intel com>
Date:   Mon Aug 22 11:20:42 2011 +0300

    Handle situation when email is NULL such as in POST items

 src/camel/camel-ews-utils.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/camel/camel-ews-utils.c b/src/camel/camel-ews-utils.c
index 0955506..fb44036 100644
--- a/src/camel/camel-ews-utils.c
+++ b/src/camel/camel-ews-utils.c
@@ -783,9 +783,11 @@ form_email_string_from_mb (const EwsMailbox *mb)
 			str = g_string_append (str, " ");
 		}
 
-		g_string_append (str, "<");
-		str = g_string_append (str, mb->email);
-		g_string_append (str, ">");
+		if (mb->email) {
+			g_string_append (str, "<");
+			str = g_string_append (str, mb->email);
+			g_string_append (str, ">");
+		}
 
 		ret = camel_pstring_add (str->str, TRUE);
 		g_string_free (str, FALSE);



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