From 2cb098132fe3b759804b98d5f7bbea1b5d6bec7d Mon Sep 17 00:00:00 2001 From: mguessan Date: Tue, 15 Jul 2014 22:09:42 +0000 Subject: [PATCH] DAV: Another email address failover git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2302 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/dav/DavExchangeSession.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/java/davmail/exchange/dav/DavExchangeSession.java b/src/java/davmail/exchange/dav/DavExchangeSession.java index 3d156f13..1daade75 100644 --- a/src/java/davmail/exchange/dav/DavExchangeSession.java +++ b/src/java/davmail/exchange/dav/DavExchangeSession.java @@ -640,6 +640,9 @@ public class DavExchangeSession extends ExchangeSession { buffer.append(alias); if (alias.indexOf('@') < 0) { buffer.append('@'); + if (hostName == null) { + hostName = "mail.unknown.com"; + } int dotIndex = hostName.indexOf('.'); if (dotIndex >= 0) { buffer.append(hostName.substring(dotIndex + 1));