mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 19:53:39 +00:00
Fix for NPE on null FROM in MMS header.
This commit is contained in:
parent
dda5bc8838
commit
0534f9d95a
@ -647,7 +647,11 @@ public class MmsDatabase extends Database implements MmsSmsColumns {
|
||||
cvb.add(DELIVERY_TIME, headers.getLongInteger(PduHeaders.DELIVERY_TIME));
|
||||
cvb.add(EXPIRY, headers.getLongInteger(PduHeaders.EXPIRY));
|
||||
cvb.add(MESSAGE_SIZE, headers.getLongInteger(PduHeaders.MESSAGE_SIZE));
|
||||
cvb.add(ADDRESS, headers.getEncodedStringValue(PduHeaders.FROM).getTextString());
|
||||
|
||||
if (headers.getEncodedStringValue(PduHeaders.FROM) != null)
|
||||
cvb.add(ADDRESS, headers.getEncodedStringValue(PduHeaders.FROM).getTextString());
|
||||
else
|
||||
cvb.add(ADDRESS, null);
|
||||
|
||||
return cvb.getContentValues();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user