From 30b11e44d1b1586c266ecd54a4b2deacbee7ef20 Mon Sep 17 00:00:00 2001 From: "cvshook%sicking.cc" Date: Thu, 9 Mar 2006 08:36:19 +0000 Subject: [PATCH] Attempt to fix startup bustage git-svn-id: svn://10.0.0.236/trunk@192054 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/document/src/nsHTMLDocument.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/content/html/document/src/nsHTMLDocument.cpp b/mozilla/content/html/document/src/nsHTMLDocument.cpp index 4c286f61a01..1918a065698 100644 --- a/mozilla/content/html/document/src/nsHTMLDocument.cpp +++ b/mozilla/content/html/document/src/nsHTMLDocument.cpp @@ -3406,7 +3406,7 @@ nsHTMLDocument::GetBodyContent() // Loop backwards because any non-elements, such as doctypes and PIs // are likly to appear before the root element. nsIContent* html = GetRootContent(); - if (html->Tag() == nsHTMLAtoms::html && + if (html && html->Tag() == nsHTMLAtoms::html && html->IsContentOfType(nsIContent::eHTML)) { // Look for body inside html