Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4271711

javax.mail.internet.MimeMessage.getContent() throws NullPointerException.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 1.0.1fcs
    • 1.0fcs
    • other-libs
    • 1.0.1fcs
    • generic
    • generic
    • Verified

    Description



      Name: sg39081 Date: 09/14/99


      MimeMessage.getContent() throws NullPointerException
      when received internet message which header
       conteins next line:
         Content-Type: text
       and create MimeMessage instance with that
       message.

      # Some MUA/MTA ("Microsoft Exchange Server
      # Internet Mail Connector" for example) set
      # 'Content-Type' header to "text".
      # (not "text/plain")

      Exception stack trace:
      -------------------------------------------
      java.lang.NullPointerException:
              at javax.activation.DataHandler.getBaseType(DataHandler.java:648)
              at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:605)
              at javax.activation.DataHandler.getContent(DataHandler.java:540)
              at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1068)
      ...
      -------------------------------------------
      (Review ID: 42793)
      ======================================================================

      Attachments

        Activity

          People

            bshannon Bill Shannon (Inactive)
            sgoodsunw Sheri Good (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: