mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1289278 - Fix null dereferencing in GetCacheDirectory(). r=michal
This commit is contained in:
parent
13116b6d68
commit
1c886052d2
@ -2340,7 +2340,7 @@ void CacheFileIOManager::GetCacheDirectory(nsIFile** result)
|
||||
*result = nullptr;
|
||||
|
||||
RefPtr<CacheFileIOManager> ioMan = gInstance;
|
||||
if (!ioMan) {
|
||||
if (!ioMan || !ioMan->mCacheDirectory) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user