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:
mguessan 2011-11-08 22:30:38 +00:00
parent db42a8eb21
commit 0578c998e8
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}
}
}