From 9c86738d96fdf98b6d8ed6168d787c571c922151 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 17 Oct 2008 04:52:00 +0000 Subject: ** Fix for bug #530872 2008-10-17 Milan Crha ** Fix for bug #530872 * gui/e-calendar-table.c: (e_calendar_table_on_open_task): Check for NULL soon enough to not crash. svn path=/trunk/; revision=36625 --- calendar/gui/e-calendar-table.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'calendar/gui/e-calendar-table.c') diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c index fc8364457f..c72dfe110a 100644 --- a/calendar/gui/e-calendar-table.c +++ b/calendar/gui/e-calendar-table.c @@ -1327,9 +1327,12 @@ e_calendar_table_on_open_task (EPopup *ep, EPopupItem *pitem, void *data) icalproperty *prop; comp_data = e_calendar_table_get_selected_comp (cal_table); + + if (!comp_data) + return; + prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_ATTENDEE_PROPERTY); - if (comp_data) - e_calendar_table_open_task (cal_table, comp_data->client, comp_data->icalcomp, prop ? TRUE : FALSE); + e_calendar_table_open_task (cal_table, comp_data->client, comp_data->icalcomp, prop ? TRUE : FALSE); } static void -- cgit