From 820ce179b1d6843ef38baf12c9a2f9bd09f57b0a Mon Sep 17 00:00:00 2001 From: mguessan Date: Sat, 28 Jun 2014 16:31:08 +0000 Subject: [PATCH] EWS: Avoid null in log message git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2299 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ews/EwsExchangeSession.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/davmail/exchange/ews/EwsExchangeSession.java b/src/java/davmail/exchange/ews/EwsExchangeSession.java index 0193adde..ac9bee4b 100644 --- a/src/java/davmail/exchange/ews/EwsExchangeSession.java +++ b/src/java/davmail/exchange/ews/EwsExchangeSession.java @@ -1466,7 +1466,8 @@ public class EwsExchangeSession extends ExchangeSession { String type; boolean isException; - protected Event(EWSMethod.Item response) { + protected Event(String folderPath, EWSMethod.Item response) { + this.folderPath = folderPath; itemId = new ItemId(response); type = response.type; @@ -1925,7 +1926,7 @@ public class EwsExchangeSession extends ExchangeSession { condition, FolderQueryTraversal.SHALLOW, 0); for (EWSMethod.Item response : responses) { - Event event = new Event(response); + Event event = new Event(folderPath, response); if ("Message".equals(event.type)) { // TODO: just exclude // need to check body @@ -2034,7 +2035,7 @@ public class EwsExchangeSession extends ExchangeSession { || "Task".equals(itemType) // VTODOs appear as Messages || "Message".equals(itemType)) { - return new Event(item); + return new Event(folderPath, item); } else { throw new HttpNotFoundException(itemName + " not found in " + folderPath); }