axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
Date Tue, 25 Jan 2005 18:47:35 GMT
dims        2005/01/25 10:47:35

  Modified:    java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
  Log:
  Fix for AXIS-1714 - Java2WSDL throws NPE on WSDLs that import schema from a file
  from Mark Hansen (m.hansen23@verizon.net)
  
  Revision  Changes    Path
  1.112     +5 -3      ws-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java
  
  Index: SymbolTable.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java,v
  retrieving revision 1.111
  retrieving revision 1.112
  diff -u -r1.111 -r1.112
  --- SymbolTable.java	9 Dec 2004 22:29:59 -0000	1.111
  +++ SymbolTable.java	25 Jan 2005 18:47:35 -0000	1.112
  @@ -795,9 +795,11 @@
               // get the parent directory of the contextURL, and append
               // the spec string to the end.
               String contextFileName = contextURL.getFile();
  -            URL parent =
  -                    new File(contextFileName).getParentFile().toURL();
  -
  +            URL parent = null;
  +            File parentFile = new File(contextFileName).getParentFile(); 
  +            if ( parentFile != null ) {
  +                parent = parentFile.toURL(); 
  +            }
               if (parent != null) {
                   return new URL(parent, path);
               }
  
  
  

Mime
View raw message