Closed Bug 412138 Opened 17 years ago Closed 17 years ago

mdn extension assumes onStartRunningURL has been successful [@nsMsgMdnGenerator::OnStopRunningUrl]

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jminta, Assigned: jminta)

References

(Blocks 1 open bug)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

Attached patch patch v1Splinter Review
The mdn generator assumes that onStartRunningURL has been called, and thus that m_file is non-null.  Violating this assumption crashes immediately.
Attachment #296773 - Flags: superreview?(dmose)
Attachment #296773 - Flags: review?(bugzilla)
Attachment #296773 - Flags: review?(bugzilla) → review+
Comment on attachment 296773 [details] [diff] [review]
patch v1

-    m_file->Remove(PR_FALSE);
+    if (m_file)
+        m_file->Remove(PR_FALSE);

nit: please use 2 space indentation.
Nits picked, checked in

Checking in mailnews/extensions/mdn/src/nsMsgMdnGenerator.cpp;
/cvsroot/mozilla/mailnews/extensions/mdn/src/nsMsgMdnGenerator.cpp,v  <--  nsMsgMdnGenerator.cpp
new revision: 1.30; previous revision: 1.29
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Attachment #296773 - Flags: superreview?(dmose)
Product: Core → MailNews Core
Crash Signature: [@nsMsgMdnGenerator::OnStopRunningUrl]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: