Merge change 2092 into donut
* changes: Make sure smsHeader != null before using it.
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user