FIx for bug 28349, don't addref a null pointer oh dude!. R=alecf, A=phil

This commit is contained in:
ducarroz%netscape.com 2000-02-29 22:32:14 +00:00
parent a150f36957
commit 42244ae8c4

View File

@ -672,8 +672,12 @@ NS_IMETHODIMP
nsStreamConverter::GetIdentity(nsIMsgIdentity * *aIdentity)
{
if (!aIdentity) return NS_ERROR_NULL_POINTER;
/*
We don't have an identity for the local folders account,
we will return null but it is not an error!
*/
*aIdentity = mIdentity;
NS_ADDREF(*aIdentity);
NS_IF_ADDREF(*aIdentity);
return NS_OK;
}