commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marcs...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpConnectionManager.java
Date Thu, 28 Mar 2002 03:45:49 GMT
marcsaeg    02/03/27 19:45:48

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpConnectionManager.java
  Log:
  Added check for null sURL in getConnection().
  
  Revision  Changes    Path
  1.2       +7 -3      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnectionManager.java
  
  Index: HttpConnectionManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnectionManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- HttpConnectionManager.java	22 Feb 2002 19:24:23 -0000	1.1
  +++ HttpConnectionManager.java	28 Mar 2002 03:45:48 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnectionManager.java,v
1.1 2002/02/22 19:24:23 marcsaeg Exp $
  - * $Revision: 1.1 $
  - * $Date: 2002/02/22 19:24:23 $
  + * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnectionManager.java,v
1.2 2002/03/28 03:45:48 marcsaeg Exp $
  + * $Revision: 1.2 $
  + * $Date: 2002/03/28 03:45:48 $
    * ====================================================================
    *
    * The Apache Software License, Version 1.1
  @@ -169,6 +169,10 @@
       public HttpConnection getConnection(String sURL) throws MalformedURLException
       {
           HttpConnection conn = null;
  +
  +        if(sURL == null){
  +            throw new MalformedURLException("sURL = null");
  +        }
   
           URL url = null;
           try{
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message