summaryrefslogtreecommitdiffstats
path: root/mailnews
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-11-11 02:11:46 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-11-11 02:11:46 -0500
commit3260f2045481749e21a5b0688e6187fbf833f3e3 (patch)
tree261d1cea034bbc7ee6863b41a648d661d242f88b /mailnews
parentc6df8fffbc568a81c5f477d6ff9c240500faeb0c (diff)
downloadUXP-3260f2045481749e21a5b0688e6187fbf833f3e3.tar
UXP-3260f2045481749e21a5b0688e6187fbf833f3e3.tar.gz
UXP-3260f2045481749e21a5b0688e6187fbf833f3e3.tar.lz
UXP-3260f2045481749e21a5b0688e6187fbf833f3e3.tar.xz
UXP-3260f2045481749e21a5b0688e6187fbf833f3e3.zip
Bug 726655 - Add null check in nsMsgDBView::GetThreadContainingMsgHdr() to avoid crash.
Tag #1273
Diffstat (limited to 'mailnews')
-rw-r--r--mailnews/base/src/nsMsgDBView.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/mailnews/base/src/nsMsgDBView.cpp b/mailnews/base/src/nsMsgDBView.cpp
index a1867244b..6793ba95a 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);
}