--- a/libidav/methods.c Thu Nov 28 17:20:19 2024 +0100 +++ b/libidav/methods.c Thu Nov 28 17:53:13 2024 +0100 @@ -836,7 +836,7 @@ { char prefix[8]; int pfxnum = 0; - if (cxListSize(data->set) > 0) { + if (data->set && cxListSize(data->set) > 0) { CxIterator i = cxListIterator(data->set); cx_foreach(DavProperty*, p, i) { if (strcmp(p->ns->name, "DAV:")) { @@ -845,7 +845,7 @@ } } } - if (cxListSize(data->remove) > 0) { + if (data->remove && cxListSize(data->remove) > 0) { CxIterator i = cxListIterator(data->remove); cx_foreach(DavProperty*, p, i) { if (strcmp(p->ns->name, "DAV:")) {