Fix NPE when outgoing media message is deleted.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-04-14 10:01:33 -07:00
parent 3e29bf4e54
commit 262c1e47ad

View File

@ -82,6 +82,8 @@ public abstract class PushSendJob extends SendJob {
long threadId = DatabaseFactory.getMmsDatabase(context).getThreadIdForMessage(messageId);
Recipients recipients = DatabaseFactory.getThreadDatabase(context).getRecipientsForThreadId(threadId);
MessageNotifier.notifyMessageDeliveryFailed(context, recipients, threadId);
if (threadId != -1 && recipients != null) {
MessageNotifier.notifyMessageDeliveryFailed(context, recipients, threadId);
}
}
}