From ba3a4751368f7845e93d3ebe461ce8478af6b5c1 Mon Sep 17 00:00:00 2001 From: "rpotts%netscape.com" Date: Fri, 22 Dec 2000 21:47:26 +0000 Subject: [PATCH] bug #63529. Added a null-pointer check in nsWebShell::OnStateChange(...) git-svn-id: svn://10.0.0.236/trunk@84012 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsWebShell.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index ad8301bf440..68f55561f66 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -894,6 +894,10 @@ NS_IMETHODIMP nsWebShell::OnStateChange(nsIWebProgress *aProgress, nsIRequest *aRequest, PRInt32 aStateFlags, nsresult aStatus) { + if (!aRequest) { + return NS_OK; + } + if (aStateFlags & STATE_IS_DOCUMENT) { nsCOMPtr webProgress(do_QueryInterface(mLoadCookie));