From 2bbf11d320e2ff2e20e8b5905e83a3c3edb04b25 Mon Sep 17 00:00:00 2001 From: mguessan Date: Sat, 21 Mar 2009 22:04:06 +0000 Subject: [PATCH] Caldav: fix regression on non meeting events git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@473 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ExchangeSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index 06deefcd..f9c57330 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -1508,7 +1508,7 @@ public class ExchangeSession { body.append("To: ").append(participants.attendees).append("\r\n"); body.append("From: ").append(participants.organizer).append("\r\n"); // if not organizer, set REPLYTIME to force Outlook in attendee mode - if (!email.equalsIgnoreCase(participants.organizer)) { + if (participants.organizer != null && !email.equalsIgnoreCase(participants.organizer)) { if (icsBody.indexOf("METHOD:") < 0) { icsBody = icsBody.replaceAll("BEGIN:VCALENDAR", "BEGIN:VCALENDAR\r\nMETHOD:REQUEST"); }