-
Bug
-
Resolution: Fixed
-
P4
-
1.0fcs
-
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)
======================================================================