Fix for NPE if MMS notification has no transaction ID

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-09-13 16:38:02 -07:00
parent 93395c3ff4
commit b7109e9ebb

View File

@ -103,7 +103,11 @@ public class MmsDownloadJob extends MasterSecretJob {
byte[] transactionId = new byte[0];
try {
if (notification.get().getTransactionId() != null) {
transactionId = notification.get().getTransactionId().getBytes(CharacterSets.MIMENAME_ISO_8859_1);
} else {
Log.w(TAG, "No transaction ID!");
}
} catch (UnsupportedEncodingException e) {
Log.w(TAG, e);
}