88386 - Add null check to avoid crash because the parser could get released from underneath during location.replace

git-svn-id: svn://10.0.0.236/trunk@98299 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com 2001-06-29 19:57:52 +00:00
parent 73f263f784
commit e2e9432efe

View File

@ -4955,7 +4955,7 @@ HTMLContentSink::ProcessSCRIPTTag(const nsIParserNode& aNode)
// If the act of insertion evaluated the script, we're fine.
// Else, block the parser till the script has loaded.
if (mNeedToBlockParser || !mParser->IsParserEnabled()) {
if (mNeedToBlockParser || (mParser && !mParser->IsParserEnabled())) {
return NS_ERROR_HTMLPARSER_BLOCK;
}