mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
Fix (by inspection) NPE reported through google
This commit is contained in:
parent
33bbbfeec7
commit
c3f4e5323c
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue