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

This commit is contained in:
peterv%propagandism.org 2006-10-03 18:17:59 +00:00
Родитель 139e93999d
Коммит 2b90252854
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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;
}
}