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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.0.1fcs
    • Affects Version/s: 1.0fcs
    • Component/s: other-libs
    • 1.0.1fcs
    • generic
    • generic
    • Verified



      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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: