1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

Ews: fix possible NullPonterException

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1411 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-09-01 21:58:11 +00:00
parent 4080160040
commit c8f44069bf

View File

@ -601,7 +601,11 @@ public abstract class EWSMethod extends PostMethod {
*/ */
public List<Item> getResponseItems() throws EWSException { public List<Item> getResponseItems() throws EWSException {
checkSuccess(); checkSuccess();
return responseItems; if (responseItems != null) {
return responseItems;
} else {
return new ArrayList<Item>();
}
} }
/** /**