From dd729a0622b11b1125010315e530cc4c58db0b41 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 22 Apr 2002 13:09:02 +0000 Subject: raise an exception if the backend's method returns NULL, since we can't 2002-04-22 Rodrigo Moya * pcs/cal.c (impl_Cal_get_alarms_in_range): raise an exception if the backend's method returns NULL, since we can't send a NULL pointer to ORBit. svn path=/trunk/; revision=16554 --- calendar/ChangeLog | 6 ++++++ calendar/pcs/cal.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index d5a73eaedc..f77b8b1bd7 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2002-04-22 Rodrigo Moya + + * pcs/cal.c (impl_Cal_get_alarms_in_range): raise an exception if the + backend's method returns NULL, since we can't send a NULL pointer to + ORBit. + 2002-04-19 Anna Marie Dirks * gui/dialogs/cal-prefs-dialog.glade: Collapsed notebook into two pages diff --git a/calendar/pcs/cal.c b/calendar/pcs/cal.c index 2944563163..5225b5680e 100644 --- a/calendar/pcs/cal.c +++ b/calendar/pcs/cal.c @@ -337,6 +337,11 @@ impl_Cal_get_alarms_in_range (PortableServer_Servant servant, return NULL; } + if (!seq) { + bonobo_exception_set (ev, ex_GNOME_Evolution_Calendar_Cal_NotFound); + return NULL; + } + return seq; } -- cgit v1.2.3