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

gently, instead of wetting the floor.


git-svn-id: svn://10.0.0.236/trunk@166550 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
shaver%mozilla.org 2004-12-10 10:00:17 +00:00
parent 6a823a0bc5
commit daeab2d4a5

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) \