A caller may ask us to set a date-valued property to null. Rebuff them

gently, instead of wetting the floor.
This commit is contained in:
shaver%mozilla.org 2004-12-10 10:00:17 +00:00
parent 522338eedf
commit 8b7826b74e

View File

@ -335,6 +335,8 @@ NS_IMETHODIMP \
calIcalComponent::Set##Attrname(calIDateTime *dt) \
{ \
struct icaltimetype itt; \
if (!dt) \
return NS_ERROR_INVALID_ARG; \
dt->ToIcalTime(&itt); \
icalvalue *val = icalvalue_new_datetime(itt); \
if (!val) \