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:
commit
42e18b2edb
@ -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