Bug 1024495 - Crash in mozilla::net::CacheFileIOManager::GetProfilelessCacheDirectory. r=michal, a=lmandel
authorHonza Bambas <honzab.moz@firemni.cz>
Fri, 13 Jun 2014 01:45:43 +0200
changeset 208373 e13a7d705f6c0d149272e3f67a5e9a720563c27d
parent 208372 b10a750d205d612353eed42b1d2e63d5e8a4a275
child 208374 9d21d16d60fad268e47048fcb1133c16b0e73535
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmichal, lmandel
bugs1024495
milestone32.0a2
Bug 1024495 - Crash in mozilla::net::CacheFileIOManager::GetProfilelessCacheDirectory. r=michal, a=lmandel
netwerk/cache2/CacheFileIOManager.cpp
--- a/netwerk/cache2/CacheFileIOManager.cpp
+++ b/netwerk/cache2/CacheFileIOManager.cpp
@@ -2259,17 +2259,17 @@ void CacheFileIOManager::GetCacheDirecto
 #if defined(MOZ_WIDGET_ANDROID)
 
 // static
 void CacheFileIOManager::GetProfilelessCacheDirectory(nsIFile** result)
 {
   *result = nullptr;
 
   nsRefPtr<CacheFileIOManager> ioMan = gInstance;
-  if (!ioMan) {
+  if (!ioMan || !ioMan->mCacheProfilelessDirectory) {
     return;
   }
 
   ioMan->mCacheProfilelessDirectory->Clone(result);
 }
 
 #endif