[evolution/gnome-3-0] Bug #646197 - Crash with VALARM without ACTION property



commit f735a0833bd610bc520d1567baf9d483be849388
Author: Milan Crha <mcrha redhat com>
Date:   Mon Apr 18 16:33:47 2011 +0200

    Bug #646197 - Crash with VALARM without ACTION property

 plugins/itip-formatter/itip-formatter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index a401865..056bc3f 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -1871,7 +1871,7 @@ extract_itip_data (struct _itip_puri *pitip, GtkContainer *container, gboolean *
 			icalcompiter_next (&alarm_iter);
 
 			p = icalcomponent_get_first_property (alarm_comp, ICAL_ACTION_PROPERTY);
-			if (icalproperty_get_action (p) == ICAL_ACTION_PROCEDURE)
+			if (!p || icalproperty_get_action (p) == ICAL_ACTION_PROCEDURE)
 				icalcomponent_remove_component (pitip->ical_comp, alarm_comp);
 
 			icalcomponent_free (alarm_comp);



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