From dddda73fe4f06be4b959ab72b629132496be0097 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 18 Apr 2011 16:29:29 +0200 Subject: Bug #646197 - Crash with VALARM without ACTION property --- plugins/itip-formatter/itip-formatter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/itip-formatter') diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index fcd54279e2..dcf3874b12 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); -- cgit v1.2.3