if (icalerrno == ICAL_BADARG_ERROR) { str.Truncate(); str.SetIsVoid(PR_TRUE); return NS_OK; }
calIcalProperty::GetStringValue(nsACString &str){    const char *icalstr = icalproperty_get_value_as_string(mProperty);    if (!icalstr) {        if (icalerrno == ICAL_BADARG_ERROR) {            str.Truncate();            str.SetIsVoid(PR_TRUE);            return NS_OK;        }        #ifdef DEBUG        fprintf(stderr, "Error getting string value: %d (%s)\n",                icalerrno, icalerror_strerror(icalerrno));#endif        return NS_ERROR_FAILURE;    }    str.Assign(icalstr);    return NS_OK;}