Fix bug 102921 "Mozilla crashes when Cache in profile dir points

to nonexistent directory". Change to fail nsDiskCacheDevice::Init()
if mCacheDirectory is nsnull.  sr=darin.
This commit is contained in:
gordon%netscape.com 2002-02-19 09:08:09 +00:00
parent ef602147ff
commit 2b4b0643ef

View File

@ -277,7 +277,8 @@ nsDiskCacheDevice::Init()
nsresult rv;
NS_ENSURE_TRUE(!mInitialized, NS_ERROR_FAILURE);
if (!mCacheDirectory) return NS_ERROR_FAILURE;
rv = mBindery.Init();
if (NS_FAILED(rv)) return rv;