You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by to...@apache.org on 2002/10/07 16:06:55 UTC
cvs commit: xml-axis/java/src/org/apache/axis/deployment/wsdd WSDDOperation.java
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();