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 ru...@apache.org on 2002/08/25 21:05:02 UTC
cvs commit: xml-axis/java/src/org/apache/axis Message.java
rubys 2002/08/25 12:05:02
Modified: java/src/org/apache/axis Message.java
Log:
Apparently one can't rely on messages having context (faults apparently
don't always).
Revision Changes Path
1.86 +1 -1 xml-axis/java/src/org/apache/axis/Message.java
Index: Message.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/Message.java,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- Message.java 25 Aug 2002 14:00:02 -0000 1.85
+++ Message.java 25 Aug 2002 19:05:02 -0000 1.86
@@ -379,7 +379,7 @@
public String getContentType(SOAPConstants sc) throws AxisFault {
int sendType = Attachments.SEND_TYPE_NOTSET;
- if (msgContext.getService() != null) {
+ if ((msgContext != null) && (msgContext.getService() != null)) {
sendType = msgContext.getService().getSendType();
}