Bug 856768 Workaround for crash in RowCellColumnToCollationKey (fallout from bug 834747) r=jcranmer a=Standard8 RELEASE_22_END
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Thu, 27 Jun 2013 23:45:50 +0100
changeset 30985 586520179d8be1bdebe866ab91cf28c9ad17cebe
parent 30984 01292040cfad4223d1f2d36e11c2961832969797
child 30986 22b2b85cbd8cdf5b53c27daa6cbfb911bffc7550
child 30989 d9742b01c984a35b2e3d97d72063c939417cae34
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjcranmer, Standard8
bugs856768, 834747
Bug 856768 Workaround for crash in RowCellColumnToCollationKey (fallout from bug 834747) r=jcranmer a=Standard8
mailnews/db/msgdb/src/nsMsgDatabase.cpp
--- a/mailnews/db/msgdb/src/nsMsgDatabase.cpp
+++ b/mailnews/db/msgdb/src/nsMsgDatabase.cpp
@@ -3728,17 +3728,17 @@ nsresult nsMsgDatabase::GetCollationKeyG
       }
     }
   }
   return err;
 }
 
 nsresult nsMsgDatabase::RowCellColumnToCollationKey(nsIMdbRow *row, mdb_token columnToken, uint8_t **result, uint32_t *len)
 {
-  const char *nakedString = nullptr;
+  const char *nakedString = "";
   nsresult err;
 
   err = RowCellColumnToConstCharPtr(row, columnToken, &nakedString);
   if (NS_SUCCEEDED(err))
   {
     GetMimeConverter();
     if (m_mimeConverter)
     {