mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
Don't use null for 'text' and 'html' in ViewableContainer
This commit is contained in:
parent
f181e923ca
commit
a48adafbbc
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user