Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8795408c authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Return null for getSubmitPdu() for encoding failure instead of NPE" am: 75214226

Change-Id: Ib374f2ecf640ed0064b5033251f49ec2febf8801
parents c022a034 75214226
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -627,7 +627,7 @@ public class SmsMessage {
                    destinationAddress, message, statusReportRequested);
        }

        return new SubmitPdu(spb);
        return spb != null ? new SubmitPdu(spb) : null;
    }

    /**
@@ -655,7 +655,7 @@ public class SmsMessage {
                    destinationAddress, destinationPort, data, statusReportRequested);
        }

        return new SubmitPdu(spb);
        return spb != null ? new SubmitPdu(spb) : null;
    }

    // TODO: SubmitPdu class is used for SMS-DELIVER also now. Refactor for SubmitPdu and new