summaryrefslogtreecommitdiff
path: root/mailnews/imap/src
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-11-11 01:53:00 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-11-11 01:53:00 -0500
commitdc77b707f20280cd057368ca11fafc2c0bfc9414 (patch)
tree17f8bd7a94f9361500326b9dfb92ea88a1ddd356 /mailnews/imap/src
parenta081e71becb76a90ba6bd82ceb27ce2e0274ea36 (diff)
downloaduxp-dc77b707f20280cd057368ca11fafc2c0bfc9414.tar.gz
Bug 1580187 - Add null check to avoid crash in nsImapService::NewChannel().
Tag #1273
Diffstat (limited to 'mailnews/imap/src')
-rw-r--r--mailnews/imap/src/nsImapService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailnews/imap/src/nsImapService.cpp b/mailnews/imap/src/nsImapService.cpp
index 1d97dec29d..60af2084a8 100644
--- a/mailnews/imap/src/nsImapService.cpp
+++ b/mailnews/imap/src/nsImapService.cpp
@@ -2734,7 +2734,7 @@ NS_IMETHODIMP nsImapService::NewChannel2(nsIURI *aURI,
nsCString fullFolderName;
if (parent)
fullFolderName = folderName;
- if (!parent && !folderName.IsEmpty()) // check if this folder is another user's folder
+ if (!parent && !folderName.IsEmpty() && imapRoot) // Check if this folder is another user's folder.
{
fullFolderName = nsIMAPNamespaceList::GenerateFullFolderNameWithDefaultNamespace(serverKey.get(),
folderName.get(),