Bug 857678 Workaround for crash in RowCellColumnToCollationKey (fallout from bug 834757) r=jcranmer
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Thu, 27 Jun 2013 20:07:05 +0100
changeset 16015 c95e6993f4dfce050883c773ceb36accc62d7db4
parent 16014 849aa4cab973baba26e5802b5debf520b5a4dd1c
child 16016 01352d5023d8d4efc456a3d660df8bb29584a23a
push id1000
push userbugzilla@standard8.plus.com
push dateMon, 16 Sep 2013 20:21:48 +0000
treeherdercomm-beta@77f0178eb807 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjcranmer
bugs857678, 834757
Bug 857678 Workaround for crash in RowCellColumnToCollationKey (fallout from bug 834757) r=jcranmer a=Standard8 for checkin to a CLOSED TREE
mailnews/db/msgdb/src/nsMsgDatabase.cpp
--- a/mailnews/db/msgdb/src/nsMsgDatabase.cpp
+++ b/mailnews/db/msgdb/src/nsMsgDatabase.cpp
@@ -3748,17 +3748,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)
     {