mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-13 22:48:07 -05: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
|
||||
writer.write("Subject: " + MimeUtility.encodeText(getICSSummary(icsBody), "UTF-8", null) + "\r\n");
|
||||
|
||||
writer.write("To: ");
|
||||
writer.write(recipients);
|
||||
writer.write("\r\n");
|
||||
// do not send notification if no recipients found
|
||||
if (recipients.length() == 0) {
|
||||
if (recipients != null && recipients.length() > 0) {
|
||||
writer.write("To: ");
|
||||
writer.write(recipients);
|
||||
writer.write("\r\n");
|
||||
} else {
|
||||
status = HttpStatus.SC_NO_CONTENT;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user