From 1b18e19429cb69093af662284692ad2f0aec7598 Mon Sep 17 00:00:00 2001 From: "kaie%netscape.com" Date: Thu, 8 Aug 2002 14:10:42 +0000 Subject: [PATCH] b=161394 Fix crash in debug builds r=javi sr=alecf --- security/manager/boot/src/nsSecureBrowserUIImpl.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/security/manager/boot/src/nsSecureBrowserUIImpl.cpp b/security/manager/boot/src/nsSecureBrowserUIImpl.cpp index f8b029e6306..8373dcd3961 100644 --- a/security/manager/boot/src/nsSecureBrowserUIImpl.cpp +++ b/security/manager/boot/src/nsSecureBrowserUIImpl.cpp @@ -1149,11 +1149,13 @@ nsSecureBrowserUIImpl::OnSecurityChange(nsIWebProgress *aWebProgress, nsCOMPtr aURI; channel->GetURI(getter_AddRefs(aURI)); - nsCAutoString temp; - aURI->GetSpec(temp); - PR_LOG(gSecureDocLog, PR_LOG_DEBUG, - ("SecureUI:%p: OnSecurityChange: (%x) %s\n", this, - state, temp.get())); + if (aURI) { + nsCAutoString temp; + aURI->GetSpec(temp); + PR_LOG(gSecureDocLog, PR_LOG_DEBUG, + ("SecureUI:%p: OnSecurityChange: (%x) %s\n", this, + state, temp.get())); + } #endif return NS_OK;