mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Bug 57347 --> add a null ptr check to prevent a crash.
patch contributed by waterson r=brendan sr=mscott
This commit is contained in:
parent
21c8dfc1ae
commit
ac8cc6c8b1
@ -73,11 +73,13 @@ NS_IMETHODIMP nsOSHelperAppService::DoContent(const char *aMimeContentType, nsIU
|
||||
if (aURI)
|
||||
{
|
||||
nsCOMPtr<nsIURL> url = do_QueryInterface(aURI);
|
||||
nsXPIDLCString extenion;
|
||||
url->GetFileExtension(getter_Copies(extenion));
|
||||
if (url) {
|
||||
nsXPIDLCString extenion;
|
||||
url->GetFileExtension(getter_Copies(extenion));
|
||||
|
||||
fileExtension = ".";
|
||||
fileExtension.Append(extenion);
|
||||
fileExtension = ".";
|
||||
fileExtension.Append(extenion);
|
||||
}
|
||||
}
|
||||
|
||||
if (mimeInfo)
|
||||
|
Loading…
x
Reference in New Issue
Block a user