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

Commit 3fb06404 authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by The Android Open Source Project
Browse files

am f209b46c: Merge change 2092 into donut

Merge commit 'f209b46c'

* commit 'f209b46c':
  Make sure smsHeader != null before using it.
parents 0795272a f209b46c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ final class CdmaSMSDispatcher extends SMSDispatcher {
            byte[][] pdus = new byte[1][];
            pdus[0] = sms.getPdu();

            if (smsHeader.portAddrs != null) {
            if (smsHeader != null && smsHeader.portAddrs != null) {
                if (smsHeader.portAddrs.destPort == SmsHeader.PORT_WAP_PUSH) {
                    // GSM-style WAP indication
                    mWapPush.dispatchWapPdu(sms.getUserData());
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ final class GsmSMSDispatcher extends SMSDispatcher {
            byte[][] pdus = new byte[1][];
            pdus[0] = sms.getPdu();

            if (smsHeader.portAddrs != null) {
            if (smsHeader != null && smsHeader.portAddrs != null) {
                if (smsHeader.portAddrs.destPort == SmsHeader.PORT_WAP_PUSH) {
                    mWapPush.dispatchWapPdu(sms.getUserData());
                }