From 4aa12d035b496380159a3cc4c587c8dc69f2611a Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Tue, 4 Jul 2000 21:49:27 +0000 Subject: [PATCH] 44113 r/a=valeski@netscape.com git-svn-id: svn://10.0.0.236/trunk@73657 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index d631aeb5fec..70ad568eb54 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -1660,9 +1660,8 @@ NS_IMETHODIMP nsDocShell::SetTitle(const PRUnichar* aTitle) if(!parent) { nsCOMPtr treeOwnerAsWin(do_QueryInterface(mTreeOwner)); - NS_ENSURE_TRUE(treeOwnerAsWin, NS_ERROR_FAILURE); - - treeOwnerAsWin->SetTitle(aTitle); + if (treeOwnerAsWin) + treeOwnerAsWin->SetTitle(aTitle) } if(mGlobalHistory && mCurrentURI)