check for valid msgHdr prior calling DeleteHeader()

This commit is contained in:
jefft%netscape.com 1999-07-07 05:25:44 +00:00
parent 5a295d632b
commit f998e41867

View File

@ -935,7 +935,8 @@ NS_IMETHODIMP nsMsgDatabase::DeleteMessages(nsMsgKeyArray* nsMsgKeys, nsIDBChang
err = NS_MSG_MESSAGE_NOT_FOUND;
break;
}
err = DeleteHeader(msgHdr, instigator, kindex % 300 == 0, PR_TRUE);
if (msgHdr)
err = DeleteHeader(msgHdr, instigator, kindex % 300 == 0, PR_TRUE);
NS_IF_RELEASE(msgHdr);
if (err != NS_OK)
break;