axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/handlers JWSHandler.java
Date Tue, 17 Sep 2002 11:48:12 GMT
dims        2002/09/17 04:48:12

  Modified:    java/src/org/apache/axis/handlers JWSHandler.java
  Log:
  Avoid java.lang.StringIndexOutOfBoundsException by checking for length beforehand.
  
  Revision  Changes    Path
  1.25      +1 -1      xml-axis/java/src/org/apache/axis/handlers/JWSHandler.java
  
  Index: JWSHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/JWSHandler.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- JWSHandler.java	9 Sep 2002 17:03:21 -0000	1.24
  +++ JWSHandler.java	17 Sep 2002 11:48:12 -0000	1.25
  @@ -356,7 +356,7 @@
                   {
                       String path = urls[i].getPath();
                       //If it is a drive letter, adjust accordingly.
  -                    if(path.charAt(0)=='/'&&path.charAt(2)==':')
  +                    if(path.length() >= 3 && path.charAt(0)=='/' &&
path.charAt(2)==':')
                           path = path.substring(1);
                       classpath.append(path);
                       classpath.append(File.pathSeparatorChar);
  
  
  

Mime
View raw message