1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 17:18:50 -05:00

Don't use null for 'text' and 'html' in ViewableContainer

This commit is contained in:
cketti 2012-03-16 22:56:09 +01:00
parent f181e923ca
commit a48adafbbc

View File

@ -3281,7 +3281,7 @@ public class MimeUtility {
container.attachments.add(bodyPart); container.attachments.add(bodyPart);
} }
} else { } else {
container = new ViewableContainer(null, null, new ArrayList<Part>()); container = new ViewableContainer("", "", new ArrayList<Part>());
} }
return container; return container;
@ -3291,8 +3291,8 @@ public class MimeUtility {
} }
private static ViewableContainer extractTextual(Part part) throws MessagingException { private static ViewableContainer extractTextual(Part part) throws MessagingException {
String text = null; String text = "";
String html = null; String html = "";
List<Part> attachments = new ArrayList<Part>(); List<Part> attachments = new ArrayList<Part>();
Body firstBody = part.getBody(); Body firstBody = part.getBody();