Bug 762115 - Missing null check at nsHttpChannel::GetProfileDirectory, r=michal

This commit is contained in:
Honza Bambas 2012-06-07 18:10:21 +02:00
parent 41b58b77bf
commit 226f248afc

View File

@ -5381,6 +5381,9 @@ nsHttpChannel::GetProfileDirectory(nsIFile **_result)
{
NS_ENSURE_ARG(_result);
if (!mProfileDirectory)
return NS_ERROR_NOT_AVAILABLE;
NS_ADDREF(*_result = mProfileDirectory);
return NS_OK;
}