Jeremy <[EMAIL PROTECTED]> wrote: 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

OK. But why was the condition satisfied when the envelope was *NOT* null and 
the soapVersion was equal to 1?
I have inspected and re-inspected these variables in the Eclipse WTP debugger 
but I just cannot see why this condition would be satisfied.
I try to step into the SOAP12Factory().getDefaultEnvelope() method and the 
exception is immediately thrown.


 
---------------------------------
8:00? 8:25? 8:40?  Find a flick in no time
 with theYahoo! Search movie showtime shortcut.

Reply via email to