mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-08 20:28:25 -05:00
From coverity: avoid null dereference in getFolderPath
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2277 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
248efafa1d
commit
d960fd65ec
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user