Bug 702165 - crash [@ nsMsgQuickSearchDBView::OnSearchDone ], r=irving, a=Standard8.
authorKent James <kent@caspia.com>
Tue, 30 Oct 2012 06:34:40 -0700
changeset 13539 7dbb40e0446514292ffa7067785f4057397a4d10
parent 13538 a18af72a983183d5323036fe0f4eb7356bbdc7df
child 13540 3cb3fc93b072bc4a9fe7fadcc99c746ccb940e7b
push idunknown
push userunknown
push dateunknown
reviewersirving, Standard8
bugs702165
Bug 702165 - crash [@ nsMsgQuickSearchDBView::OnSearchDone ], r=irving, a=Standard8.
mailnews/base/src/nsMsgQuickSearchDBView.cpp
--- a/mailnews/base/src/nsMsgQuickSearchDBView.cpp
+++ b/mailnews/base/src/nsMsgQuickSearchDBView.cpp
@@ -298,17 +298,17 @@ nsMsgQuickSearchDBView::OnSearchHit(nsIM
 }
 
 NS_IMETHODIMP
 nsMsgQuickSearchDBView::OnSearchDone(nsresult status)
 {
   // We're a single-folder virtual folder if viewFolder != folder, and that is
   // the only case in which we want to be messing about with a results cache
   // or unread counts.
-  if (m_viewFolder && m_viewFolder != m_folder)
+  if (m_db && m_viewFolder && m_viewFolder != m_folder)
   {
     nsTArray<nsMsgKey> keyArray;
     nsCString searchUri;
     m_viewFolder->GetURI(searchUri);
     uint32_t count = m_hdrHits.Count();
     // build up message keys.
     uint32_t i;
     for (i = 0; i < count; i++)