Author: akazakov
Date: 2009-05-20 07:45:58 -0400 (Wed, 20 May 2009)
New Revision: 15361
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/HttpUtil.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4338 Fixed
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/HttpUtil.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/HttpUtil.java 2009-05-20
10:57:43 UTC (rev 15360)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/HttpUtil.java 2009-05-20
11:45:58 UTC (rev 15361)
@@ -165,7 +165,13 @@
IProxyData proxy = proxyData[i];
if(IProxyData.HTTP_PROXY_TYPE.equals(proxy.getType())) {
String proxyHostName = proxy.getHost();
+ if(proxyHostName==null) {
+ break;
+ }
int portNumber = proxy.getPort();
+ if(portNumber==-1) {
+ portNumber = 80;
+ }
httpClient.getHostConfiguration().setProxy(proxyHostName, portNumber);
if(proxy.isRequiresAuthentication()) {
String userName = proxy.getUserId();