aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2002-04-22 21:09:02 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2002-04-22 21:09:02 +0800
commitdd729a0622b11b1125010315e530cc4c58db0b41 (patch)
tree8bc684ca7569ebb43323ac160f9173ac083a99bf /calendar
parent1c40070dafb3049d75c2d4d6f1246604ca65abe1 (diff)
downloadgsoc2013-evolution-dd729a0622b11b1125010315e530cc4c58db0b41.tar
gsoc2013-evolution-dd729a0622b11b1125010315e530cc4c58db0b41.tar.gz
gsoc2013-evolution-dd729a0622b11b1125010315e530cc4c58db0b41.tar.bz2
gsoc2013-evolution-dd729a0622b11b1125010315e530cc4c58db0b41.tar.lz
gsoc2013-evolution-dd729a0622b11b1125010315e530cc4c58db0b41.tar.xz
gsoc2013-evolution-dd729a0622b11b1125010315e530cc4c58db0b41.tar.zst
gsoc2013-evolution-dd729a0622b11b1125010315e530cc4c58db0b41.zip
raise an exception if the backend's method returns NULL, since we can't
2002-04-22 Rodrigo Moya <rodrigo@ximian.com> * 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
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/pcs/cal.c5
2 files changed, 11 insertions, 0 deletions
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 <rodrigo@ximian.com>
+
+ * 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 <anna@ximian.com>
* 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;
}