зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 355246 (Crash loading testcase from bug 197956). r/sr=sicking.
This commit is contained in:
Родитель
139e93999d
Коммит
2b90252854
|
@ -123,7 +123,10 @@ txMozillaXMLOutput::txMozillaXMLOutput(txOutputFormat* aFormat,
|
||||||
|
|
||||||
mCurrentNode = do_QueryInterface(aFragment);
|
mCurrentNode = do_QueryInterface(aFragment);
|
||||||
mDocument = mCurrentNode->GetOwnerDoc();
|
mDocument = mCurrentNode->GetOwnerDoc();
|
||||||
if (!mDocument) {
|
if (mDocument) {
|
||||||
|
mNodeInfoManager = mDocument->NodeInfoManager();
|
||||||
|
}
|
||||||
|
else {
|
||||||
mCurrentNode = nsnull;
|
mCurrentNode = nsnull;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче