From eeed9e5ad590bae5c7642b83b00fbd548b106881 Mon Sep 17 00:00:00 2001 From: "ducarroz%netscape.com" Date: Thu, 1 Mar 2001 23:42:33 +0000 Subject: [PATCH] Fix for smoketest blocker 70500. identity->GetSignature can return a null file despite rv=NS_OK. R=varada --- mailnews/compose/src/nsMsgCompose.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mailnews/compose/src/nsMsgCompose.cpp b/mailnews/compose/src/nsMsgCompose.cpp index ac2c9c0a388..3d464e79af8 100644 --- a/mailnews/compose/src/nsMsgCompose.cpp +++ b/mailnews/compose/src/nsMsgCompose.cpp @@ -1940,8 +1940,10 @@ nsMsgCompose::ProcessSignature(nsIMsgIdentity *identity, nsString *aMsgBody) { nsCOMPtr 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. } }