Skip to content

Commit 54c3ce2

Browse files
author
Matthias Thomae
committed
Return error code when composing PDU fails
When the PduComposer fails to make the message body, a successful result code was still returned. Change-Id: I8a677afeeae8811c3b0fae61209c5348df1e39d9
1 parent 472512f commit 54c3ce2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/java/com/google/android/mms/pdu/PduComposer.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,9 +835,7 @@ private int makeSendReqPdu() {
835835
appendOctet(PduHeaders.CONTENT_TYPE);
836836

837837
// Message body
838-
makeMessageBody();
839-
840-
return PDU_COMPOSE_SUCCESS; // Composing the message is OK
838+
return makeMessageBody();
841839
}
842840

843841
/**

0 commit comments

Comments
 (0)