Fixes the crash thats occuring on windows with no proxy setting.

This commit is contained in:
gagan%netscape.com 1999-09-21 00:08:09 +00:00
parent 0a7c01bb4f
commit 2a26ad2c70

View File

@ -118,7 +118,8 @@ nsHTTPHandler::nsHTTPHandler():mProxy(nsnull)
nsXPIDLCString proxyServer;
PRInt32 proxyPort = -1;
rv = prefs->CopyCharPref("network.proxy.http", getter_Copies(proxyServer));
if (NS_FAILED(rv)) NS_ERROR("Failed to get the HTTP proxy server");
if (NS_FAILED(rv))
return; //NS_ERROR("Failed to get the HTTP proxy server");
rv = prefs->GetIntPref("network.proxy.http_port",&proxyPort);
#ifdef DEBUG_gagan
printf("Read HTTP proxy = %s:%d\n", (const char*)proxyServer,proxyPort);