Commit b1fec8cc authored by Mickaël Guessant's avatar Mickaël Guessant

From coverity: avoid null dereference in getFolderPath

git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@2277 3d1905a2-6b24-0410-a738-b14d5a86fcbd
parent 90f2a104
......@@ -202,7 +202,7 @@ public class DavExchangeSession extends ExchangeSession {
}
if (principal.length() == 0) {
exchangeFolderPath = rootPath;
} else if (alias.equalsIgnoreCase(principal) || email.equalsIgnoreCase(principal)) {
} else if (alias.equalsIgnoreCase(principal) || (email != null && email.equalsIgnoreCase(principal))) {
exchangeFolderPath = mailPath + localPath;
} else {
LOGGER.debug("Detected shared path for principal " + principal + ", user principal is " + email);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment