зеркало из https://github.com/mozilla/pjs.git
Fix for smoketest blocker 70500. identity->GetSignature can return a null file despite rv=NS_OK. R=varada
This commit is contained in:
Родитель
7bd4201c24
Коммит
eeed9e5ad5
|
@ -1940,8 +1940,10 @@ nsMsgCompose::ProcessSignature(nsIMsgIdentity *identity, nsString *aMsgBody)
|
|||
{
|
||||
nsCOMPtr<nsILocalFile> sigFile;
|
||||
rv = identity->GetSignature(getter_AddRefs(sigFile));
|
||||
if (NS_SUCCEEDED(rv))
|
||||
if (NS_SUCCEEDED(rv) && sigFile)
|
||||
rv = sigFile->GetPath(getter_Copies(sigNativePath));
|
||||
else
|
||||
useSigFile = PR_FALSE; //No signature file! therefore turn it off.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче