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

Commit 75214226 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 9bcef80b 934f40aa
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