Bug 726655 - Add null check in nsMsgDBView::GetThreadContainingMsgHdr() to avoid crash.

Tag #1273
This commit is contained in:
Matt A. Tobin 2019-11-11 02:11:46 -05:00 committed by Roy Tam
commit 11672d13e6

View file

@ -5255,6 +5255,7 @@ nsresult nsMsgDBView::ExpandAll()
NS_IMETHODIMP nsMsgDBView::GetThreadContainingMsgHdr(nsIMsgDBHdr *msgHdr, nsIMsgThread **pThread)
{
if (!m_db) return NS_ERROR_FAILURE;
return m_db->GetThreadContainingMsgHdr(msgHdr, pThread);
}