mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 17:27:00 +00:00
Fixed crash
This commit is contained in:
parent
4ada1dba5d
commit
7e89563b48
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ public class MessageHelper {
|
|||
private String getHtml(Part part) throws MessagingException {
|
||||
if (part.isMimeType("text/*"))
|
||||
try {
|
||||
String s = (String) part.getContent();
|
||||
String s = part.getContent().toString();
|
||||
if (part.isMimeType("text/plain"))
|
||||
s = "<pre>" + s.replaceAll("\\r?\\n", "<br />") + "</pre>";
|
||||
return s;
|
||||
|
|
Loading…
Reference in a new issue