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:
parent
cd5eacfb56
commit
c6dd28e5a1
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue