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

Commit a13eb8b8 authored by Rekha Kumar's avatar Rekha Kumar Committed by Rika Brooks
Browse files

Telephony: Check SmsTracker's mSentIntent for null

When SmsManager's sendMultipartTextMessage is invoked with null sentIntents,
the SmsTracker object is initialized with mSentIntent as null.
This causes NullPointerException.

Change-Id: I545c4a23676ba67f6a5523f15564993f001e48ca
parent 801aa9f3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -989,7 +989,9 @@ public abstract class SMSDispatcher extends Handler {
        if (mPendingTrackerCount >= MO_MSG_QUEUE_LIMIT) {
            // Deny sending message when the queue limit is reached.
            try {
                if (tracker.mSentIntent != null) {
                    tracker.mSentIntent.send(RESULT_ERROR_LIMIT_EXCEEDED);
                }
            } catch (CanceledException ex) {
                Log.e(TAG, "failed to send back RESULT_ERROR_LIMIT_EXCEEDED");
            }