From b80d460a8f4d1c8248e78da8cf8b7c8c9f084f6a Mon Sep 17 00:00:00 2001 From: Alan Evans Date: Tue, 21 Apr 2020 14:28:57 -0300 Subject: [PATCH] Account for deleted conversations in profile key send job. --- .../org/thoughtcrime/securesms/jobs/ProfileKeySendJob.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/jobs/ProfileKeySendJob.java b/app/src/main/java/org/thoughtcrime/securesms/jobs/ProfileKeySendJob.java index 91f55787d9..4a7238ba51 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/jobs/ProfileKeySendJob.java +++ b/app/src/main/java/org/thoughtcrime/securesms/jobs/ProfileKeySendJob.java @@ -72,7 +72,8 @@ public class ProfileKeySendJob extends BaseJob { Recipient conversationRecipient = DatabaseFactory.getThreadDatabase(context).getRecipientForThreadId(threadId); if (conversationRecipient == null) { - throw new AssertionError("We have a thread but no recipient!"); + Log.w(TAG, "Thread no longer present"); + return; } List destinations = Stream.of(recipients).map(Recipient::resolved).toList();