From b35d81ae0829510bcf40e1109be10bee917300cb Mon Sep 17 00:00:00 2001 From: Harry Lu Date: Tue, 28 Mar 2006 04:46:47 +0000 Subject: Fix for 333693. need to see if source is NULL to avoid a CRITICAL warning. 2006-03-28 Harry Lu Fix for 333693. * gui/calendar-component.c: (update_task_selection): need to see if source is NULL to avoid a CRITICAL warning. svn path=/trunk/; revision=31748 --- calendar/ChangeLog | 6 ++++++ calendar/gui/calendar-component.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index f2431689e4..de888ddd99 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2006-03-28 Harry Lu + + Fix for 333693. + * gui/calendar-component.c: (update_task_selection): need to see if + source is NULL to avoid a CRITICAL warning. + 2006-03-23 Chenthill Palanisamy Fixes #329502 diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index b620715c91..b88850c8ce 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -416,7 +416,7 @@ update_task_selection (CalendarComponentView *component_view) ESource *source; source = e_source_list_peek_source_by_uid (component_view->task_source_list, uid); - if (!gnome_calendar_add_source (component_view->calendar, E_CAL_SOURCE_TYPE_TODO, source)) + if (source && !gnome_calendar_add_source (component_view->calendar, E_CAL_SOURCE_TYPE_TODO, source)) /* FIXME do something */; } -- cgit