Bug 202972 - Null mDocument triggering crash [@ nsDocAccessible::FireDocLoadFinished]

Patch by timeless, r=aaronl, sr=bzbarsky, a=asa
This commit is contained in:
caillon%returnzero.com 2003-04-25 02:18:54 +00:00
parent 4a2c7fb52a
commit 27300f7ea0

View File

@ -382,6 +382,10 @@ void nsDocAccessible::RemoveContentDocListeners()
void nsDocAccessible::FireDocLoadFinished()
{
NS_ASSERTION(mDocument, "No Document - Bug 202972");
if (!mDocument)
return;
// Hook up our new accessible with our parent
if (!mParent) {
nsCOMPtr<nsIDocument> parentDoc;