am 6a07f9fb: Merge change 27301 into eclair
Merge commit '6a07f9fbe9f270795d3338415ca03a3333ec50e3' into eclair-plus-aosp * commit '6a07f9fbe9f270795d3338415ca03a3333ec50e3': bug 2148061: if PduBody is zero length, treat it as an empty message.
This commit is contained in:
@@ -850,8 +850,7 @@ public class PduComposer {
|
||||
PositionMarker ctStart = mStack.mark();
|
||||
|
||||
// This contentTypeIdentifier should be used for type of attachment...
|
||||
String contentType = new String(
|
||||
mPduHeader.getTextString(PduHeaders.CONTENT_TYPE));
|
||||
String contentType = new String(mPduHeader.getTextString(PduHeaders.CONTENT_TYPE));
|
||||
Integer contentTypeIdentifier = mContentTypeMap.get(contentType);
|
||||
if (contentTypeIdentifier == null) {
|
||||
// content type is mandatory
|
||||
@@ -862,7 +861,7 @@ public class PduComposer {
|
||||
|
||||
// content-type parameter: start
|
||||
PduBody body = ((SendReq) mPdu).getBody();
|
||||
if (null == body) {
|
||||
if (null == body || body.getPartsNum() == 0) {
|
||||
// empty message
|
||||
appendUintvarInteger(0);
|
||||
mStack.pop();
|
||||
|
||||
Reference in New Issue
Block a user