Bug 528184 - Invalid read, missing null check in nsNSSIOLayer.cpp. r=kaie

This commit is contained in:
Oleg Romashin 2009-11-12 19:45:37 +02:00
Родитель 1e97689583
Коммит 284d0a4d47
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -403,8 +403,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());