DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18321>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18321

NullPointerException with Faults in early invocation stages

           Summary: NullPointerException with Faults in early invocation
                    stages
           Product: Axis
           Version: current (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


A AxisFault throw in a early stage of invocation causes a NPE in SOAPFault.
The following call:
if (! cls.equals(AxisFault.class)) {
                FaultDesc faultDesc = 
                        context.getMessageContext().getOperation
().getFaultByClass(cls);

works only if a operation is set. In early invocation stages is this not 
guranteed.
I would suggest the attached patch.

Reply via email to