dims 2002/11/19 19:37:00
Modified: java/src/org/apache/axis/message SOAPHeaderElement.java
Log:
Oops...Need to check for null (for message context) as well.
Revision Changes Path
1.16 +1 -1 xml-axis/java/src/org/apache/axis/message/SOAPHeaderElement.java
Index: SOAPHeaderElement.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/message/SOAPHeaderElement.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- SOAPHeaderElement.java 20 Nov 2002 03:28:07 -0000 1.15
+++ SOAPHeaderElement.java 20 Nov 2002 03:37:00 -0000 1.16
@@ -199,7 +199,7 @@
roleQName.getLocalPart(), actor);
String val;
- if (context.getMessageContext().getSOAPConstants() ==
SOAPConstants.SOAP12_CONSTANTS)
+ if (context.getMessageContext() != null &&
context.getMessageContext().getSOAPConstants() == SOAPConstants.SOAP12_CONSTANTS)
val = mustUnderstand ? "true" : "false";
else
val = mustUnderstand ? "1" : "0";