olegk       2004/12/19 08:55:24

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HostConfiguration.java
  Log:
  PR #32765 (HostConfiguration.setHost(Sting) causes NullPointerException)
  
  Contributed by Stuart Herring <apache -at- stuartherring.com>
  Reviewed by Oleg Kalnichevski
  
  Revision  Changes    Path
  1.22      +4 -4      
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HostConfiguration.java
  
  Index: HostConfiguration.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HostConfiguration.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- HostConfiguration.java    3 Nov 2004 18:24:44 -0000       1.21
  +++ HostConfiguration.java    19 Dec 2004 16:55:24 -0000      1.22
  @@ -290,7 +290,7 @@
        */
       public synchronized void setHost(final String host) {
           Protocol defaultProtocol = Protocol.getProtocol("http"); 
  -        setHost(host, null, defaultProtocol.getDefaultPort(), 
defaultProtocol);
  +        setHost(host, defaultProtocol.getDefaultPort(), defaultProtocol);
       }
       
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to