1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 03:02:22 -05:00

Dav: Avoid returning null in getCmdBasePath

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1756 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-08-04 17:43:36 +00:00
parent b6789e75f2
commit 172edf059b

View File

@ -227,7 +227,7 @@ public class DavExchangeSession extends ExchangeSession {
* @return cmd base path
*/
public String getCmdBasePath() {
if (PUBLIC_ROOT.equals(publicFolderUrl)) {
if (PUBLIC_ROOT.equals(publicFolderUrl) && mailPath != null) {
// public folder is not available => try to use mailbox path
// Note: This does not work with freebusy, which requires /public/
return mailPath;