geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/modules/common/src/java/org/apache/geronimo/common Strings.java
Date Tue, 26 Aug 2003 11:02:43 GMT
jdillon     2003/08/26 04:02:43

  Modified:    modules/common/src/java/org/apache/geronimo/common
                        Strings.java
  Log:
   o Toss NAE if urlspec is null
  
  Revision  Changes    Path
  1.10      +5 -1      incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/Strings.java
  
  Index: Strings.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/Strings.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Strings.java	26 Aug 2003 07:51:06 -0000	1.9
  +++ Strings.java	26 Aug 2003 11:02:43 -0000	1.10
  @@ -690,6 +690,10 @@
        */
       public static URL toURL(String urlspec, final String relativePrefix) throws MalformedURLException
       {
  +        if (urlspec == null) {
  +            throw new NullArgumentException("urlspec");
  +        }
  +        
           urlspec = urlspec.trim();
           URL url;
           
  
  
  

Mime
View raw message