gracefully handle the lack of a method

2001-07-25  JP Rosevear  <jpr@ximian.com>

	* gui/e-itip-control.c (e_itip_control_set_data): gracefully
	handle the lack of a method

svn path=/trunk/; revision=11419
This commit is contained in:
JP Rosevear
2001-07-25 23:01:06 +00:00
committed by JP Rosevear
parent 959c0e424c
commit 706cb549df
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-07-25 JP Rosevear <jpr@ximian.com>
* gui/e-itip-control.c (e_itip_control_set_data): gracefully
handle the lack of a method
2001-07-25 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-day-view.c (selection_received_cb): check type of component

View File

@ -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);