Caldav: remove empty properties

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1450 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-09-14 22:12:55 +00:00
parent cd5eacfb56
commit c6dd28e5a1
1 changed files with 11 additions and 0 deletions

View File

@ -172,6 +172,17 @@ public class VCalendar extends VObject {
vObject.removeProperty("X-ENTOURAGE_UUID");
splitExDate(vObject);
// remove empty properties
if ("".equals(vObject.getPropertyValue("LOCATION"))) {
vObject.removeProperty("LOCATION");
}
if ("".equals(vObject.getPropertyValue("DESCRIPTION"))) {
vObject.removeProperty("DESCRIPTION");
}
if ("".equals(vObject.getPropertyValue("CLASS"))) {
vObject.removeProperty("CLASS");
}
} else {
// add organizer line to all events created in Exchange for active sync
String organizer = getEmailValue(vObject.getProperty("ORGANIZER"));