mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 23:07:31 +09:00
Bug 1580187 - Add null check to avoid crash in nsImapService::NewChannel().
Tag #1273
This commit is contained in:
parent
ac612ee4b5
commit
338383f722
1 changed files with 1 additions and 1 deletions
|
|
@ -2734,7 +2734,7 @@ NS_IMETHODIMP nsImapService::NewChannel2(nsIURI *aURI,
|
||||||
nsCString fullFolderName;
|
nsCString fullFolderName;
|
||||||
if (parent)
|
if (parent)
|
||||||
fullFolderName = folderName;
|
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(),
|
fullFolderName = nsIMAPNamespaceList::GenerateFullFolderNameWithDefaultNamespace(serverKey.get(),
|
||||||
folderName.get(),
|
folderName.get(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue