commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject cvs commit: jakarta-commons/configuration/src/java/org/apache/commons/configuration ConfigurationUtils.java
Date Wed, 17 Nov 2004 00:14:03 GMT
ebourg      2004/11/16 16:14:03

  Modified:    configuration/src/java/org/apache/commons/configuration
                        ConfigurationUtils.java
  Log:
  getBasePath now returns null if the specified URL is null
  
  Revision  Changes    Path
  1.11      +6 -1      jakarta-commons/configuration/src/java/org/apache/commons/configuration/ConfigurationUtils.java
  
  Index: ConfigurationUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/configuration/src/java/org/apache/commons/configuration/ConfigurationUtils.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ConfigurationUtils.java	19 Oct 2004 13:41:44 -0000	1.10
  +++ ConfigurationUtils.java	17 Nov 2004 00:14:03 -0000	1.11
  @@ -372,6 +372,11 @@
        */
       static String getBasePath(URL url)
       {
  +        if (url == null)
  +        {
  +            return null;
  +        }
  +        
           String s = url.toString();
   
           if (s.endsWith("/") || StringUtils.isEmpty(url.getPath()))
  
  
  

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


Mime
View raw message