mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
don't populate data from uri when there is none
Fixes #2282 Closes #2283 // FREEBIE
This commit is contained in:
parent
3e8d2a557e
commit
b6822b310e
@ -103,6 +103,10 @@ public class MmsSendJob extends MasterSecretJob {
|
||||
}
|
||||
|
||||
private void populatePartData(PduPart part, MasterSecret masterSecret) throws IOException {
|
||||
if (part.getDataUri() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
ByteArrayOutputStream os = part.getDataSize() > 0 && part.getDataSize() < Integer.MAX_VALUE
|
||||
? new ByteArrayOutputStream((int)part.getDataSize())
|
||||
: new ByteArrayOutputStream();
|
||||
|
Loading…
Reference in New Issue
Block a user