Bug 428614 - Crash every time I try to read news [@SearchTable], p=Pidgeot18@gmail.com (Joshua Cranmer), r+sr=bienvenu

git-svn-id: svn://10.0.0.236/trunk@250529 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
philringnalda%gmail.com
2008-04-21 02:17:26 +00:00
parent e114cab73c
commit 8361808593

View File

@@ -867,6 +867,17 @@ NS_IMETHODIMP nsMsgHdr::GetIsKilled(PRBool *isKilled)
nsMsgKey threadParent;
GetThreadParent(&threadParent);
if (threadParent == m_messageKey)
{
// isKilled is false by virtue of the enclosing if statement
NS_ASSERTION(PR_FALSE, "Thread is parent of itself, please fix!");
// Something's wrong, but the problem happened some time ago, so erroring
// out now is probably not a good idea. Ergo, we'll pretend to be OK, show
// the user the thread (err on the side of caution), and let the assertion
// alert debuggers to a problem.
return NS_OK;
}
if (threadParent != nsMsgKey_None)
{
nsCOMPtr <nsIMsgDBHdr> parentHdr;