don't populate data from uri when there is none

Fixes #2282
Closes #2283

// FREEBIE
fork-5.53.8
Jake McGinty 2014-12-31 15:47:30 -08:00 zatwierdzone przez Moxie Marlinspike
rodzic 3e8d2a557e
commit b6822b310e
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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();