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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user