зеркало из https://github.com/mozilla/pjs.git
Add null pointer check.
This commit is contained in:
Родитель
2815bff532
Коммит
89e52a1e3a
|
@ -575,7 +575,7 @@ NS_IMETHODIMP
|
|||
nsXMLDocument::EndLoad()
|
||||
{
|
||||
nsAutoString cmd;
|
||||
mParser->GetCommand(cmd);
|
||||
if (mParser) mParser->GetCommand(cmd);
|
||||
NS_IF_RELEASE(mParser);
|
||||
if (cmd.EqualsWithConversion(kLoadAsData)) {
|
||||
// Generate a document load event for the case when an XML document was loaded
|
||||
|
|
|
@ -575,7 +575,7 @@ NS_IMETHODIMP
|
|||
nsXMLDocument::EndLoad()
|
||||
{
|
||||
nsAutoString cmd;
|
||||
mParser->GetCommand(cmd);
|
||||
if (mParser) mParser->GetCommand(cmd);
|
||||
NS_IF_RELEASE(mParser);
|
||||
if (cmd.EqualsWithConversion(kLoadAsData)) {
|
||||
// Generate a document load event for the case when an XML document was loaded
|
||||
|
|
Загрузка…
Ссылка в новой задаче