fix RTM++56085 crasher; r=attinasi, sr=buster

git-svn-id: svn://10.0.0.236/trunk@81095 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
2000-10-13 01:16:56 +00:00
parent c681241430
commit 74d9db565a
2 changed files with 2 additions and 2 deletions

View File

@@ -891,7 +891,7 @@ nsresult CNavDTD::DidHandleStartTag(nsCParserNode& aNode,eHTMLTags aChildTag){
//handle <empty/> tags by generating a close tag...
//added this to fix bug 48351, which contains XHTML and uses empty tags.
if(nsHTMLElement::IsContainer(aChildTag)) {
if(nsHTMLElement::IsContainer(aChildTag) && aNode.mToken) { //nullptr test fixes bug 56085
CStartToken *theToken=NS_STATIC_CAST(CStartToken*,aNode.mToken);
if(theToken->IsEmpty()){