Added precondition when no content viewer.

git-svn-id: svn://10.0.0.236/trunk@26124 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sfraser%netscape.com
1999-04-03 01:46:21 +00:00
parent 28e4786886
commit d4af3f2b7a
2 changed files with 2 additions and 0 deletions

View File

@@ -292,6 +292,7 @@ nsHTMLDocument::StartDocumentLoad(nsIURL *aURL,
#ifdef rickgdebug
rv = NS_New_HTML_ContentSinkStream(&sink);
#else
NS_PRECONDITION(nsnull != aContainer, "No content viewer container");
aContainer->QueryInterface(kIWebShellIID, (void**)&webShell);
rv = NS_NewHTMLContentSink(&sink, this, aURL, webShell);
NS_IF_RELEASE(webShell);