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
1 changed files with 1 additions and 1 deletions

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;