Closed Bug 44082 Opened 25 years ago Closed 25 years ago

Crash in nsExternalHelperAppService::Init()

Categories

(SeaMonkey :: General, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jst, Assigned: mscott)

Details

(Keywords: crash, Whiteboard: [nsbeta2+])

I just crashed on a null pointer reference in nsExternalHelperAppService::Init() while playing around with form submission in a local file in viewer, this patch fixes the crash: Index: uriloader/exthandler/nsExternalHelperAppService.cpp =================================================================== RCS file: /cvsroot/mozilla/uriloader/exthandler/nsExternalHelperAppService.cpp,v retrieving revision 1.13 diff -u -r1.13 nsExternalHelperAppService.cpp --- nsExternalHelperAppService.cpp 2000/06/24 01:55:40 1.13 +++ nsExternalHelperAppService.cpp 2000/06/28 15:47:14 @@ -81,6 +81,8 @@ nsCOMPtr<nsIFileSpec> mimeTypesFile; rv = locator->GetFileLocation(nsSpecialFileSpec::App_UsersMimeTypes50, getter_AddRefs(mimeTypesFile)); + NS_ENSURE_SUCCESS(rv, rv); + nsXPIDLCString url; rv = mimeTypesFile->GetURLString(getter_Copies(url)); NS_ENSURE_SUCCESS(rv, rv); (locator->GetFileLocation() failed so mimeTypesFile was null.)
Hmmm I don't understand how we could fail to find this file in your profile. That's a bit alarming. But regardless I should be checking against failure in this case. Thanks for the patch. Nominating for beta2 so i can check in the fix for this crasher.
Status: NEW → ASSIGNED
Keywords: crash, nsbeta2
Target Milestone: --- → M17
just waiting on a nsbeta2+ to check in the failure check to prevent the crash.
Putting on [nsbeta2+] radar for beta2 fix.
Whiteboard: [nsbeta2+]
fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
jst - can you verify this fixed?
Verified.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.