am 0e3fccf1: Merge change Icef599ec into eclair-mr2

Merge commit '0e3fccf1a525883aa5d80e10ced5b7af48cfe5a1' into eclair-mr2-plus-aosp

* commit '0e3fccf1a525883aa5d80e10ced5b7af48cfe5a1':
  null check
This commit is contained in:
Mark Wagner
2009-11-17 16:05:12 -08:00
committed by Android Git Automerger

View File

@@ -424,6 +424,9 @@ public class PduPersister {
// faster.
if ("text/plain".equals(type) || "application/smil".equals(type)) {
String text = c.getString(PART_COLUMN_TEXT);
if (text == null) {
text = "";
}
byte [] blob = new EncodedStringValue(text).getTextString();
baos.write(blob, 0, blob.length);
} else {
@@ -858,7 +861,7 @@ public class PduPersister {
} else {
values.put(Mms.SUBJECT, "");
}
long messageSize = sendReq.getMessageSize();
if (messageSize > 0) {
values.put(Mms.MESSAGE_SIZE, messageSize);