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:
parent
95d298c2e1
commit
cd9f9028b2
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user