From 706cb549dfd40dbf931a5e33019086e262be0121 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 25 Jul 2001 23:01:06 +0000 Subject: gracefully handle the lack of a method 2001-07-25 JP Rosevear * gui/e-itip-control.c (e_itip_control_set_data): gracefully handle the lack of a method svn path=/trunk/; revision=11419 --- calendar/gui/e-itip-control.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/gui/e-itip-control.c') diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index bb060dc5c9..4cd270a3b1 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -874,6 +874,8 @@ e_itip_control_set_data (EItipControl *itip, const gchar *text) } prop = icalcomponent_get_first_property (priv->main_comp, ICAL_METHOD_PROPERTY); + if (prop == NULL) + goto show; priv->method = icalproperty_get_method (prop); tz_iter = icalcomponent_begin_component (priv->main_comp, ICAL_VTIMEZONE_COMPONENT); -- cgit