Bug 1289278 - Fix null dereferencing in GetCacheDirectory(). r=michal

This commit is contained in:
Ting-Yu Chou 2016-07-26 13:13:38 +08:00
parent 13116b6d68
commit 1c886052d2

View File

@ -2340,7 +2340,7 @@ void CacheFileIOManager::GetCacheDirectory(nsIFile** result)
*result = nullptr;
RefPtr<CacheFileIOManager> ioMan = gInstance;
if (!ioMan) {
if (!ioMan || !ioMan->mCacheDirectory) {
return;
}