Fix for bug 355246 (Crash loading testcase from bug 197956). r/sr=sicking.

git-svn-id: svn://10.0.0.236/trunk@213073 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterv%propagandism.org 2006-10-03 18:17:59 +00:00
parent 95d298c2e1
commit cd9f9028b2

View File

@ -123,7 +123,10 @@ txMozillaXMLOutput::txMozillaXMLOutput(txOutputFormat* aFormat,
mCurrentNode = do_QueryInterface(aFragment);
mDocument = mCurrentNode->GetOwnerDoc();
if (!mDocument) {
if (mDocument) {
mNodeInfoManager = mDocument->NodeInfoManager();
}
else {
mCurrentNode = nsnull;
}
}