diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-11 02:11:46 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-11 02:11:46 -0500 |
commit | 3260f2045481749e21a5b0688e6187fbf833f3e3 (patch) | |
tree | 261d1cea034bbc7ee6863b41a648d661d242f88b /mailnews | |
parent | c6df8fffbc568a81c5f477d6ff9c240500faeb0c (diff) | |
download | uxp-3260f2045481749e21a5b0688e6187fbf833f3e3.tar.gz |
Bug 726655 - Add null check in nsMsgDBView::GetThreadContainingMsgHdr() to avoid crash.
Tag #1273
Diffstat (limited to 'mailnews')
-rw-r--r-- | mailnews/base/src/nsMsgDBView.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mailnews/base/src/nsMsgDBView.cpp b/mailnews/base/src/nsMsgDBView.cpp index a1867244ba..6793ba95aa 100644 --- a/mailnews/base/src/nsMsgDBView.cpp +++ b/mailnews/base/src/nsMsgDBView.cpp @@ -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); } |