diff --git a/src/org/thoughtcrime/securesms/jobs/PushMediaSendJob.java b/src/org/thoughtcrime/securesms/jobs/PushMediaSendJob.java index 3b910f7b98..635a74ce0b 100644 --- a/src/org/thoughtcrime/securesms/jobs/PushMediaSendJob.java +++ b/src/org/thoughtcrime/securesms/jobs/PushMediaSendJob.java @@ -102,6 +102,13 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType { throws RetryLaterException, InsecureFallbackApprovalException, UntrustedIdentityException, UndeliverableMessageException { + if (message.getRecipients() == null || + message.getRecipients().getPrimaryRecipient() == null || + message.getRecipients().getPrimaryRecipient().getNumber() == null) + { + throw new UndeliverableMessageException("No destination address."); + } + TextSecureMessageSender messageSender = messageSenderFactory.create(); try {