aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-10-17 12:52:00 +0800
committerBharath Acharya <abharath@src.gnome.org>2008-10-17 12:52:00 +0800
commit9c86738d96fdf98b6d8ed6168d787c571c922151 (patch)
tree326350c80baabf0ad6b0d1b9a35a108490968db8 /calendar/gui
parente5e6107537c6689d2a02a1ed9365ea0a5c84c210 (diff)
downloadgsoc2013-evolution-9c86738d96fdf98b6d8ed6168d787c571c922151.tar
gsoc2013-evolution-9c86738d96fdf98b6d8ed6168d787c571c922151.tar.gz
gsoc2013-evolution-9c86738d96fdf98b6d8ed6168d787c571c922151.tar.bz2
gsoc2013-evolution-9c86738d96fdf98b6d8ed6168d787c571c922151.tar.lz
gsoc2013-evolution-9c86738d96fdf98b6d8ed6168d787c571c922151.tar.xz
gsoc2013-evolution-9c86738d96fdf98b6d8ed6168d787c571c922151.tar.zst
gsoc2013-evolution-9c86738d96fdf98b6d8ed6168d787c571c922151.zip
** Fix for bug #530872
2008-10-17 Milan Crha <mcrha@redhat.com> ** 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
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-calendar-table.c7
1 files changed, 5 insertions, 2 deletions
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