summaryrefslogtreecommitdiffstats
path: root/mailnews/imap
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
parenta081e71becb76a90ba6bd82ceb27ce2e0274ea36 (diff)
downloadUXP-dc77b707f20280cd057368ca11fafc2c0bfc9414.tar
UXP-dc77b707f20280cd057368ca11fafc2c0bfc9414.tar.gz
UXP-dc77b707f20280cd057368ca11fafc2c0bfc9414.tar.lz
UXP-dc77b707f20280cd057368ca11fafc2c0bfc9414.tar.xz
UXP-dc77b707f20280cd057368ca11fafc2c0bfc9414.zip
Bug 1580187 - Add null check to avoid crash in nsImapService::NewChannel().
Tag #1273
Diffstat (limited to 'mailnews/imap')
-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 1d97dec29..60af2084a 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(),