Handle the case of no body being present (happens in unit tests)

* Fixes #2121403
This commit is contained in:
Marc Blank 2009-09-15 13:07:59 -07:00
parent 3bef610196
commit ffc681a4da

View File

@ -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) {