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 bu...@apache.org on 2003/01/31 19:18:34 UTC

DO NOT REPLY [Bug 16649] New: - SoapConnectionImpl NPEs if attachments arent in the build.

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=16649>.
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=16649

SoapConnectionImpl NPEs if attachments arent in the build.

           Summary: SoapConnectionImpl NPEs if attachments arent in the
                    build.
           Product: Axis
           Version: current (nightly)
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Basic Architecture
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: stevel@apache.org


reported by: Gerhard Engelbrecht 
Following code taken from SOAPConnectionImpl (1.1 beta):
Line 98:
Attachments attachments = ((org.apache.axis.Message)
request).getAttachmentsImpl();
returns null if there are no attachments in the given SOAPMessage (request)
and you'll get
a NullPointerException in the next line
Iterator iterator = attachments.getAttachments().iterator();