1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 19:22:22 -05:00

Caldav: Another request parsing bug: handle empty elements

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1277 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-07-26 09:59:10 +00:00
parent a7de241e14
commit b6d1836092

View File

@ -1440,9 +1440,11 @@ public class CaldavConnection extends AbstractConnection {
int event = reader.next();
if (event == XMLStreamConstants.START_ELEMENT) {
String tagLocalName = reader.getLocalName();
if (!"calendar-free-busy-set".equals(tagLocalName)) {
properties.put(tagLocalName, reader.getElementText());
String tagText = null;
if (reader.hasText()) {
tagText = reader.getElementText();
}
properties.put(tagLocalName, tagText);
}
}
}