Jack Sprat wrote:
I believe I found the bug in the org.apache.axis2.transport.http.HTTPTransportUtils class. The following "if" condition lacks a set of parentheses:

if ((msgContext.getEnvelope() == null) && soapVersion != VERSION_SOAP11) { msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope());
            }

There needs to be a set of parenteses around the 2nd condition (soapVersion != VERSION_SOAP11) condition. The soapVersion variable had a value of 1 in this case so the condition should *NOT* have been satisfied. The operation within the "if" statement caused the exception.

The != operator takes precedence over the && operator. So the parentheses are not necessary (actually, the first set isn't necessary either - it just helps with readability).

Jeremy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to