This section of code in org.apache.soap.encoding.soapenc.MimePartSerializer.java seems broken (lines 110-117):
 
DataSource ds = null;
DataHandler dh = null;
MimeBodyPart bp = null;
if (src instanceof InputStream)
        ds = new ByteArrayDataSource((InputStream)src,
                                          "application/octet-stream");
else if (src instanceof DataSource)
        ds = (DataSource)ds;
 
Shouldn't that last line be?
ds= (DataSource)src;
 
Casting a null seems like the wrong way to go.  Where does someone report something like that if it really is a problem?
 
 

Reply via email to