Handle the case of no body being present (happens in unit tests)
* Fixes #2121403
This commit is contained in:
parent
3bef610196
commit
ffc681a4da
@ -62,6 +62,9 @@ public class Rfc822Output {
|
||||
/*package*/ static String buildBodyText(Context context, Message message,
|
||||
boolean appendQuotedText) {
|
||||
Body body = Body.restoreBodyWithMessageId(context, message.mId);
|
||||
if (body == null) {
|
||||
return null;
|
||||
}
|
||||
String text = body.mTextContent;
|
||||
|
||||
if (!appendQuotedText) {
|
||||
|
Loading…
Reference in New Issue
Block a user