Merge change 2092 into donut

* changes:
  Make sure smsHeader != null before using it.
This commit is contained in:
Android (Google) Code Review
2009-05-20 13:00:22 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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());

View File

@@ -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());
}