Author: heiko.braun(a)jboss.com
Date: 2007-03-09 09:57:52 -0500 (Fri, 09 Mar 2007)
New Revision: 2574
Modified:
branches/jbossws-1.2.0/jbossws-core/src/java/org/jboss/ws/core/soap/SOAPContentElement.java
Log:
Fix JMSTransport NPE
Modified:
branches/jbossws-1.2.0/jbossws-core/src/java/org/jboss/ws/core/soap/SOAPContentElement.java
===================================================================
---
branches/jbossws-1.2.0/jbossws-core/src/java/org/jboss/ws/core/soap/SOAPContentElement.java 2007-03-09
14:15:46 UTC (rev 2573)
+++
branches/jbossws-1.2.0/jbossws-core/src/java/org/jboss/ws/core/soap/SOAPContentElement.java 2007-03-09
14:57:52 UTC (rev 2574)
@@ -522,7 +522,10 @@
public void writeElement(Writer writer) throws IOException
{
- handleMTOMTransitions();
+ // JMS transport hot fix
+ // Can be removed once we got a immutabe object model
+ if(MessageContextAssociation.peekMessageContext()!=null)
+ handleMTOMTransitions();
if (soapContent instanceof DOMContent)
{
Show replies by date