diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSReceiver.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSReceiver.java index 24bb5767e..8164b5c71 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSReceiver.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSReceiver.java @@ -45,6 +45,10 @@ public class SMSReceiver extends BroadcastReceiver { for ( int ii = 0; ii < pdus.length; ++ii ) { SmsMessage sms = SmsMessage.createFromPdu((byte[])pdus[ii]); + if ( null == sms ) { + continue; + } + String phone = sms.getOriginatingAddress(); if ( isData ) { byte[] body = sms.getUserData();