We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d4a0620 + b455ae4 commit d3e318aCopy full SHA for d3e318a
1 file changed
src/com/android/phone/BluetoothSMSAccess.java
@@ -596,6 +596,9 @@ private AtCommandResult CreatePDUResponse(SMSMsgInfo smsInfo) {
596
bo.write(4); // flags
597
598
byte[] destData = PhoneNumberUtils.networkPortionToCalledPartyBCD(smsInfo.OriginAddress);
599
+ if( destData == null )
600
+ return new AtCommandResult(AtCommandResult.ERROR);
601
+
602
int destLength = ((destData.length - 1) * 2
603
- ((destData[destData.length - 1] & 0xf0) == 0xf0 ? 1 : 0));
604
0 commit comments