From 977591ac82d0bc774b7c9e27c6d3f0275616fe0c Mon Sep 17 00:00:00 2001 From: Alan Evans Date: Wed, 4 Dec 2019 10:11:49 -0500 Subject: [PATCH] Remove assertion error in recipient preferences. --- .../thoughtcrime/securesms/RecipientPreferenceActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/RecipientPreferenceActivity.java b/src/org/thoughtcrime/securesms/RecipientPreferenceActivity.java index 7fbc528ce6..1e16f0d749 100644 --- a/src/org/thoughtcrime/securesms/RecipientPreferenceActivity.java +++ b/src/org/thoughtcrime/securesms/RecipientPreferenceActivity.java @@ -194,9 +194,10 @@ public class RecipientPreferenceActivity extends PassphraseRequiredActionBarActi () -> DatabaseFactory.getThreadDatabase(this).getThreadIdFor(recipientId), (threadId) -> { if (threadId == null) { - throw new AssertionError(); + Log.i(TAG, "No thread id for recipient."); + } else { + this.threadPhotoRailLabel.setOnClickListener(v -> startActivity(MediaOverviewActivity.forThread(this, threadId))); } - this.threadPhotoRailLabel.setOnClickListener(v -> startActivity(MediaOverviewActivity.forThread(this, threadId))); } );