Caldav: fix bug in VCalendar dtend check

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2254 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2014-03-10 22:34:26 +00:00
parent affdaf3c76
commit bd69676be5
1 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ public class VCalendar extends VObject {
dtStart.setParam("TZID", tzid);
}
VProperty dtEnd = vObject.getProperty("DTEND");
if (dtEnd != null && dtStart.getParam("TZID") != null) {
if (dtEnd != null && dtEnd.getParam("TZID") != null) {
dtEnd.setParam("TZID", tzid);
}
VProperty reccurrenceId = vObject.getProperty("RECURRENCE-ID");
@ -256,7 +256,7 @@ public class VCalendar extends VObject {
List<String> toRemoveValues = null;
List<String> values = vObject.getProperty("ATTACH").getValues();
for (String value : values) {
if (value.indexOf("CID:") >= 0) {
if (value.contains("CID:")) {
if (toRemoveValues == null) {
toRemoveValues = new ArrayList<String>();
}