dims        2002/06/27 12:37:00

  Modified:    java/src/org/apache/axis/client Service.java
  Log:
  Handle the case where wsdlService is null.
  
  Revision  Changes    Path
  1.63      +2 -5      xml-axis/java/src/org/apache/axis/client/Service.java
  
  Index: Service.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Service.java,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- Service.java      27 Jun 2002 18:06:17 -0000      1.62
  +++ Service.java      27 Jun 2002 19:37:00 -0000      1.63
  @@ -592,14 +592,11 @@
        *         required WSDL metadata
        */
       public Iterator getPorts() throws ServiceException {
  -        Map map = wsdlService.getPorts();
  -
  -        if ( map == null ) {
  +        if (wsdlService == null || wsdlService.getPorts() == null){
               // Return an empty iterator;
               return new Vector().iterator();
           }
  -
  -        return map.values().iterator();
  +        return wsdlService.getPorts().values().iterator();
       }
   
       /**
  
  
  


Reply via email to