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

Merge commit 'ffc681a4da85c82c80d819ab8afb4442577c52a0' into eclair-plus-aosp

* commit 'ffc681a4da85c82c80d819ab8afb4442577c52a0':
  Handle the case of no body being present (happens in unit tests)
This commit is contained in:
Marc Blank 2009-09-15 14:21:01 -07:00 committed by Android Git Automerger
commit 42e18b2edb

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