Closed
Bug 44082
Opened 25 years ago
Closed 25 years ago
Crash in nsExternalHelperAppService::Init()
Categories
(SeaMonkey :: General, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M17
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.)
Assignee | ||
Comment 1•25 years ago
|
||
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.
Assignee | ||
Comment 2•25 years ago
|
||
just waiting on a nsbeta2+ to check in the failure check to prevent the crash.
Assignee | ||
Comment 4•25 years ago
|
||
fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 5•25 years ago
|
||
jst - can you verify this fixed?
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•