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/gui/calendar-component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar/gui/calendar-component.c') 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 v1.2.3