[evolution-ews] In case of new time proposal the role parameter is not a part of ical, so we will bypass it



commit 2238acde3756576779c744f3336877efec6d6855
Author: Pavel Ocheretny <pocheretny src gnome org>
Date:   Tue Jun 14 22:25:43 2011 +0300

    In case of new time proposal the role parameter is not a part of ical, so we will bypass it

 src/calendar/e-cal-backend-ews-utils.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews-utils.c b/src/calendar/e-cal-backend-ews-utils.c
index 21f507f..e83e02b 100644
--- a/src/calendar/e-cal-backend-ews-utils.c
+++ b/src/calendar/e-cal-backend-ews-utils.c
@@ -76,6 +76,10 @@ void e_ews_collect_attendees(icalcomponent *comp, GSList **required, GSList **op
 
 		/* figure type of attendee, add to relevant list */
 		param = icalproperty_get_first_parameter(prop, ICAL_ROLE_PARAMETER);
+
+		/*in case of new time proposal the role parameter is not a part of ical*/
+		if (!param) continue;
+
 		switch (icalparameter_get_role(param)) {
 		case ICAL_ROLE_OPTPARTICIPANT:
 			*optional = g_slist_append(*optional, (gpointer)str);



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