Revert "fix crash from incorrect send job"

This reverts commit 8fe5f35b13e1ac0838a71dffa3515aef7f5261c4.
This commit is contained in:
Moxie Marlinspike 2015-10-23 17:08:17 -07:00
parent 8fe5f35b13
commit a5971da2ad

View File

@ -102,10 +102,6 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
throws RetryLaterException, InsecureFallbackApprovalException, UntrustedIdentityException,
UndeliverableMessageException
{
if (message.getTo() == null || message.getTo().length == 0) {
throw new UndeliverableMessageException("No destination address.");
}
TextSecureMessageSender messageSender = messageSenderFactory.create();
try {