From 2b90252854b45c5ed778325556e924606a3a609e Mon Sep 17 00:00:00 2001 From: "peterv%propagandism.org" Date: Tue, 3 Oct 2006 18:17:59 +0000 Subject: [PATCH] Fix for bug 355246 (Crash loading testcase from bug 197956). r/sr=sicking. --- content/xslt/src/xslt/txMozillaXMLOutput.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/xslt/src/xslt/txMozillaXMLOutput.cpp b/content/xslt/src/xslt/txMozillaXMLOutput.cpp index c0b34917fea1..f46977de312b 100644 --- a/content/xslt/src/xslt/txMozillaXMLOutput.cpp +++ b/content/xslt/src/xslt/txMozillaXMLOutput.cpp @@ -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; } }