mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
Avoid NullPointerException on WebdavNotAvailableException
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1852 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
db42a8eb21
commit
0578c998e8
@ -26,7 +26,6 @@ import davmail.exception.WebdavNotAvailableException;
|
||||
import davmail.exchange.dav.DavExchangeSession;
|
||||
import davmail.exchange.ews.EwsExchangeSession;
|
||||
import davmail.http.DavGatewayHttpClientFacade;
|
||||
import davmail.ui.tray.DavGatewayTray;
|
||||
import org.apache.commons.httpclient.HttpClient;
|
||||
import org.apache.commons.httpclient.HttpStatus;
|
||||
import org.apache.commons.httpclient.methods.GetMethod;
|
||||
@ -150,7 +149,7 @@ public final class ExchangeSessionFactory {
|
||||
ExchangeSession.LOGGER.debug(e.getMessage() + ", retry with EWS");
|
||||
session = new EwsExchangeSession(poolKey.url, poolKey.userName, poolKey.password);
|
||||
} else {
|
||||
DavGatewayTray.warn(new BundleMessage("LOG_WEBDAV_NOT_AVAILABLE"));
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user