From c7126fe6580248591fa5b4f5e00c19621c3222e5 Mon Sep 17 00:00:00 2001 From: "timeless@mozdev.org" Date: Wed, 27 Apr 2011 10:35:11 +0200 Subject: [PATCH] Bug 633240 nsIMIMEService.getTypeFromFile(null) crashes [@ nsExternalHelperAppService::GetTypeFromFile(nsIFile*, nsACString_internal&) ] r=biesi --HG-- extra : rebase_source : 7b0903e9907d993251a4dae1615f35399e99ca96 --- uriloader/exthandler/nsExternalHelperAppService.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/uriloader/exthandler/nsExternalHelperAppService.cpp b/uriloader/exthandler/nsExternalHelperAppService.cpp index 0d93a06204c5..f0e14bc98df3 100644 --- a/uriloader/exthandler/nsExternalHelperAppService.cpp +++ b/uriloader/exthandler/nsExternalHelperAppService.cpp @@ -2858,6 +2858,7 @@ NS_IMETHODIMP nsExternalHelperAppService::GetTypeFromURI(nsIURI *aURI, nsACStrin NS_IMETHODIMP nsExternalHelperAppService::GetTypeFromFile(nsIFile* aFile, nsACString& aContentType) { + NS_ENSURE_ARG_POINTER(aFile); nsresult rv; nsCOMPtr info;