issues@javamail.java.net

[Bug 5829] New: NullPointerException when accessing the content of an rfc822/message attachment

From: <bugzilla-daemon_at_kenai.com>
Date: Tue, 26 Feb 2013 21:25:10 +0000

http://kenai.com/bugzilla/show_bug.cgi?id=5829

             Bug #: 5829
           Summary: NullPointerException when accessing the content of an
                    rfc822/message attachment
    Classification: Unclassified
           Product: javamail
           Version: 1.4.6
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P5
         Component: imap
        AssignedTo: shannon_at_kenai.com
        ReportedBy: shannon_at_kenai.com
                CC: issues_at_javamail.kenai.com


A bug was introduced in JavaMail 1.4.6 that causes a NullPointerException
when using IMAP to access the content of a message included as an attachment
to another message. The exception looks like this:

java.lang.NullPointerException
        at
com.sun.mail.imap.IMAPMessage.ignoreBodyStructureSize(IMAPMessage.java:242)
        at
com.sun.mail.imap.IMAPBodyPart.getContentStream(IMAPBodyPart.java:184)
        at
javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:97)
        at javax.activation.DataHandler.getInputStream(DataHandler.java:238)
        at
javax.mail.internet.MimeBodyPart.getInputStream(MimeBodyPart.java:558)

-- 
Configure bugmail: http://kenai.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.