aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs
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/pcs
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/pcs')
-rw-r--r--calendar/pcs/cal.c5
1 files changed, 5 insertions, 0 deletions
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;
}