mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
59e00b6193
commit
fb28b6190a
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user