From f9d23bfed2f16415fb0cb1ffbb042f41b97249ab Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Fri, 4 Feb 2000 22:37:11 +0000 Subject: [PATCH] bulletproofing. r=alecf. see bug #26608 git-svn-id: svn://10.0.0.236/trunk@59786 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsWebShellWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp index 89b09c55a64..c44bc034fb9 100644 --- a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp @@ -2176,7 +2176,7 @@ PRBool nsWebShellWindow::ExecuteCloseHandler() nsCOMPtr docViewer; nsCOMPtr presContext; docViewer = do_QueryInterface(contentViewer); - if (NS_SUCCEEDED(docViewer->GetPresContext(*getter_AddRefs(presContext)))) { + if (docViewer && NS_SUCCEEDED(docViewer->GetPresContext(*getter_AddRefs(presContext)))) { nsEventStatus status = nsEventStatus_eIgnore; nsMouseEvent event; event.eventStructType = NS_EVENT;