From dc77b707f20280cd057368ca11fafc2c0bfc9414 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Mon, 11 Nov 2019 01:53:00 -0500 Subject: Bug 1580187 - Add null check to avoid crash in nsImapService::NewChannel(). Tag #1273 --- mailnews/imap/src/nsImapService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), -- cgit v1.2.3