зеркало из https://github.com/mozilla/pjs.git
Fix for bug 132418. Check for null ptr, patch provided by ccarlen@netscape.com. R=pinkerton, SR=sspitzer, A=asa
This commit is contained in:
Родитель
40ce895cab
Коммит
c5bfb67c22
|
@ -70,6 +70,8 @@ NS_IMETHODIMP
|
|||
nsIOService::GetURLSpecFromFile(nsIFile *aFile, nsACString &aURL)
|
||||
{
|
||||
nsresult rv;
|
||||
NS_ENSURE_ARG(aFile);
|
||||
|
||||
nsXPIDLCString ePath;
|
||||
|
||||
rv = aFile->GetPath(getter_Copies(ePath));
|
||||
|
@ -112,6 +114,7 @@ NS_IMETHODIMP
|
|||
nsIOService::InitFileFromURLSpec(nsIFile *aFile, const nsACString &aURL)
|
||||
{
|
||||
nsresult rv;
|
||||
NS_ENSURE_ARG(aFile);
|
||||
|
||||
nsCOMPtr<nsILocalFile> localFile = do_QueryInterface(aFile, &rv);
|
||||
if (NS_FAILED(rv)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче