mirror of
https://github.com/moparisthebest/davmail
synced 2024-08-13 16:53:51 -04:00
Caldav: fix NullPointerException in notifications
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@885 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
a4d8a5c33d
commit
1b54134f85
@ -2321,11 +2321,12 @@ public class ExchangeSession {
|
|||||||
// Make sure invites have a proper subject line
|
// Make sure invites have a proper subject line
|
||||||
writer.write("Subject: " + MimeUtility.encodeText(getICSSummary(icsBody), "UTF-8", null) + "\r\n");
|
writer.write("Subject: " + MimeUtility.encodeText(getICSSummary(icsBody), "UTF-8", null) + "\r\n");
|
||||||
|
|
||||||
|
// do not send notification if no recipients found
|
||||||
|
if (recipients != null && recipients.length() > 0) {
|
||||||
writer.write("To: ");
|
writer.write("To: ");
|
||||||
writer.write(recipients);
|
writer.write(recipients);
|
||||||
writer.write("\r\n");
|
writer.write("\r\n");
|
||||||
// do not send notification if no recipients found
|
} else {
|
||||||
if (recipients.length() == 0) {
|
|
||||||
status = HttpStatus.SC_NO_CONTENT;
|
status = HttpStatus.SC_NO_CONTENT;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user