Index: jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/MultiStatusResponse.java =================================================================== --- jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/MultiStatusResponse.java (revision 695483) +++ jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/MultiStatusResponse.java Fri Sep 19 16:45:38 CEST 2008 @@ -252,12 +252,13 @@ Integer statusKey = (Integer) iter.next(); Status st = new Status(statusKey.intValue()); PropContainer propCont = (PropContainer) statusMap.get(statusKey); - + if (!propCont.isEmpty()) { - Element propstat = DomUtil.createElement(document, XML_PROPSTAT, NAMESPACE); - propstat.appendChild(propCont.toXml(document)); - propstat.appendChild(st.toXml(document)); - response.appendChild(propstat); - } + Element propstat = DomUtil.createElement(document, XML_PROPSTAT, NAMESPACE); + propstat.appendChild(propCont.toXml(document)); + propstat.appendChild(st.toXml(document)); + response.appendChild(propstat); + } + } } else { // add a single '' element // NOTE: a href+status response cannot be created with 'null' status