From c8f44069bf077db88957e9c07483aec27d1348ea Mon Sep 17 00:00:00 2001 From: mguessan Date: Wed, 1 Sep 2010 21:58:11 +0000 Subject: [PATCH] Ews: fix possible NullPonterException git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1411 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ews/EWSMethod.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/davmail/exchange/ews/EWSMethod.java b/src/java/davmail/exchange/ews/EWSMethod.java index 7d48fa2c..583ab524 100644 --- a/src/java/davmail/exchange/ews/EWSMethod.java +++ b/src/java/davmail/exchange/ews/EWSMethod.java @@ -601,7 +601,11 @@ public abstract class EWSMethod extends PostMethod { */ public List getResponseItems() throws EWSException { checkSuccess(); - return responseItems; + if (responseItems != null) { + return responseItems; + } else { + return new ArrayList(); + } } /**