mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 17:31:52 -05:00
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:
parent
da71c7002d
commit
002186dc1e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user