bug 528184 missing null check, patch by romaxa, r=kaie, a=dveditz

git-svn-id: svn://10.0.0.236/trunk@259566 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dveditz%cruzio.com
2010-02-02 09:40:23 +00:00
parent 7caf06f4bf
commit 88a0afc78f

View File

@@ -384,8 +384,9 @@ nsNSSSocketInfo::EnsureDocShellDependentStuffKnown()
docshell.get(),
NS_PROXY_SYNC,
getter_AddRefs(proxiedDocShell));
nsISecureBrowserUI* secureUI;
proxiedDocShell->GetSecurityUI(&secureUI);
nsISecureBrowserUI* secureUI = nsnull;
if (proxiedDocShell)
proxiedDocShell->GetSecurityUI(&secureUI);
if (secureUI)
{
nsCOMPtr<nsIThread> mainThread(do_GetMainThread());