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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.0fcs
    • Fix Version/s: 1.0.1fcs
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.0.1fcs
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: