axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/deployment/wsdd WSDDOperation.java
Date Mon, 07 Oct 2002 14:06:55 GMT
tomj        2002/10/07 07:06:55

  Modified:    java/src/org/apache/axis/deployment/wsdd Tag: interop4
                        WSDDOperation.java
  Log:
  Protect against null pointer when writing exceptions.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.21.8.3  +6 -4      xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDOperation.java
  
  Index: WSDDOperation.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDOperation.java,v
  retrieving revision 1.21.8.2
  retrieving revision 1.21.8.3
  diff -u -r1.21.8.2 -r1.21.8.3
  --- WSDDOperation.java	5 Oct 2002 05:26:07 -0000	1.21.8.2
  +++ WSDDOperation.java	7 Oct 2002 14:06:55 -0000	1.21.8.3
  @@ -171,10 +171,12 @@
           }
           
           ArrayList faults = desc.getFaults();
  -        for (Iterator i = faults.iterator(); i.hasNext();) {
  -            FaultDesc faultDesc = (FaultDesc) i.next();
  -            WSDDFault f = new WSDDFault(faultDesc);
  -            f.writeToContext(context);
  +        if (faults != null) {
  +            for (Iterator i = faults.iterator(); i.hasNext();) {
  +                FaultDesc faultDesc = (FaultDesc) i.next();
  +                WSDDFault f = new WSDDFault(faultDesc);
  +                f.writeToContext(context);
  +            }
           }
   
           context.endElement();
  
  
  

Mime
View raw message