Blame SOURCES/evolution-ews-3.8.5-create-appointments.patch

ddbc0f
diff -up evolution-ews-3.8.5/src/calendar/e-cal-backend-ews-utils.c.create-appointments evolution-ews-3.8.5/src/calendar/e-cal-backend-ews-utils.c
ddbc0f
--- evolution-ews-3.8.5/src/calendar/e-cal-backend-ews-utils.c.create-appointments	2013-08-11 13:42:31.000000000 +0200
ddbc0f
+++ evolution-ews-3.8.5/src/calendar/e-cal-backend-ews-utils.c	2013-08-16 11:52:53.790798070 +0200
ddbc0f
@@ -65,8 +65,16 @@ e_ews_collect_attendees (icalcomponent *
ddbc0f
 		prop = icalcomponent_get_next_property (comp, ICAL_ATTENDEE_PROPERTY)) {
ddbc0f
 
ddbc0f
 		str = icalproperty_get_attendee (prop);
ddbc0f
+
ddbc0f
+		if (!str || !*str)
ddbc0f
+			continue;
ddbc0f
+
ddbc0f
 		/* figure the email address of the attendee, discard "mailto:" if it's there */
ddbc0f
-		if (!g_ascii_strncasecmp (str, "mailto:", 7)) str = (str) + 7;
ddbc0f
+		if (!g_ascii_strncasecmp (str, "mailto:", 7))
ddbc0f
+			str = (str) + 7;
ddbc0f
+
ddbc0f
+		if (!*str)
ddbc0f
+			continue;
ddbc0f
 
ddbc0f
 		/* if this attenddee is the orgenizer - dont add him/her
ddbc0f
 		 in some cases there is no maito for email if meeting orginazer */
ddbc0f
@@ -756,6 +764,9 @@ e_ews_collect_organizer (icalcomponent *
ddbc0f
 	else
ddbc0f
 		org_email_address = org;
ddbc0f
 
ddbc0f
+	if (org_email_address && !*org_email_address)
ddbc0f
+		org_email_address = NULL;
ddbc0f
+
ddbc0f
 	return org_email_address;
ddbc0f
 }
ddbc0f