mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 03:32:22 -05:00
Caldav: fix nullpointer in VCalendar on missing DTEND
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1494 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
4df643eea1
commit
533b627b2b
@ -259,6 +259,7 @@ public class VCalendar extends VObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void setClientAllday(VProperty property) {
|
protected void setClientAllday(VProperty property) {
|
||||||
|
if (property != null) {
|
||||||
// set VALUE=DATE param
|
// set VALUE=DATE param
|
||||||
if (!property.hasParam("VALUE")) {
|
if (!property.hasParam("VALUE")) {
|
||||||
property.addParam("VALUE", "DATE");
|
property.addParam("VALUE", "DATE");
|
||||||
@ -281,6 +282,7 @@ public class VCalendar extends VObject {
|
|||||||
}
|
}
|
||||||
property.setValue(value);
|
property.setValue(value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected void fixAlarm(VObject vObject, boolean fromServer) {
|
protected void fixAlarm(VObject vObject, boolean fromServer) {
|
||||||
if (vObject.vObjects != null) {
|
if (vObject.vObjects != null) {
|
||||||
|
@ -294,14 +294,17 @@ public class TestExchangeSessionEvent extends TestCase {
|
|||||||
"PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN\n" +
|
"PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN\n" +
|
||||||
"VERSION:2.0\n" +
|
"VERSION:2.0\n" +
|
||||||
"BEGIN:VEVENT\n" +
|
"BEGIN:VEVENT\n" +
|
||||||
"CREATED:20100916T115132Z\n" +
|
"CREATED:20090906T141628Z\n" +
|
||||||
"LAST-MODIFIED:20100916T115138Z\n" +
|
"LAST-MODIFIED:20090906T141630Z\n" +
|
||||||
"DTSTAMP:20100916T115138Z\n" +
|
"DTSTAMP:20090820T162854Z\n" +
|
||||||
"UID:d72ff8cc-f3ee-4fbc-b44d-1aaf78d92847\n" +
|
"UID:20090820T182854CEST-774934hSZ6@education.gouv.fr\n" +
|
||||||
"SUMMARY:New Event\n" +
|
"SUMMARY:Rentrée scolaire des enseignants - Zone C\n" +
|
||||||
"DTSTART;VALUE=DATE:20100929\n" +
|
"DTSTART;TZID=\"null\":20080901T000000\n" +
|
||||||
"DTEND;VALUE=DATE:20100930\n" +
|
"DESCRIPTION:Rentrée scolaire des enseignants\n" +
|
||||||
"TRANSP:TRANSPARENT\n" +
|
"LOCATION:France\n" +
|
||||||
|
"X-MICROSOFT-CDO-BUSYSTATUS:BUSY\n" +
|
||||||
|
"X-MICROSOFT-CDO-ALLDAYEVENT:TRUE\n" +
|
||||||
|
"ORGANIZER:MAILTO:laurent.bazin@chu-bordeaux.fr\n" +
|
||||||
"END:VEVENT\n" +
|
"END:VEVENT\n" +
|
||||||
"END:VCALENDAR";
|
"END:VCALENDAR";
|
||||||
String toServer = fixICS(itemBody, true);
|
String toServer = fixICS(itemBody, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user