mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Fix for NPE if MMS notification has no transaction ID
// FREEBIE
This commit is contained in:
parent
93395c3ff4
commit
b7109e9ebb
@ -103,7 +103,11 @@ public class MmsDownloadJob extends MasterSecretJob {
|
|||||||
byte[] transactionId = new byte[0];
|
byte[] transactionId = new byte[0];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
transactionId = notification.get().getTransactionId().getBytes(CharacterSets.MIMENAME_ISO_8859_1);
|
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) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
Log.w(TAG, e);
|
Log.w(TAG, e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user