Caldav: Fix 3569934 NullPointerException on broken PROPFIND request

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2028 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2012-09-20 20:52:36 +00:00
parent da71c7002d
commit 002186dc1e
1 changed files with 3 additions and 0 deletions

View File

@ -1480,6 +1480,9 @@ public class CaldavConnection extends AbstractConnection {
}
protected void parseXmlBody() throws IOException {
if (body == null) {
throw new DavMailException("EXCEPTION_INVALID_CALDAV_REQUEST", "Missing body");
}
XMLStreamReader streamReader = null;
try {
streamReader = XMLStreamUtil.createXMLStreamReader(body);