----- Original Message ----- From: "Gerhard Engelbrecht" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 31, 2003 04:22 Subject: SOAPConnectionImpl
> Hi Axis Developers, > > first of all I have to say, that you all are doing a great job in the > development of Axis. Thanx a lot! > > Maybe someone else has discovered the change from version 1.0 to 1.1beta in > the SOAPConnectionImpl source. Now it supports Attachments, but only messages > with attachments: > > 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(); > > This mail is just for information before you finally release version 1.1. > Thanks for your attention. Thanks, filed as a bugrep so nobody forgets. It looks to me like a simple test for null should suffice. Correct?