From dd9c65012b02705b2d51cf2582ab4934a8ac9fe8 Mon Sep 17 00:00:00 2001 From: Cody Henthorne Date: Thu, 15 Feb 2024 19:36:26 -0500 Subject: [PATCH] Fix NPE when find by phone row not supported. --- .../thoughtcrime/securesms/ContactSelectionListFragment.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/ContactSelectionListFragment.java b/app/src/main/java/org/thoughtcrime/securesms/ContactSelectionListFragment.java index 4a768ff0d4..ab75168ac7 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/ContactSelectionListFragment.java +++ b/app/src/main/java/org/thoughtcrime/securesms/ContactSelectionListFragment.java @@ -896,10 +896,9 @@ public final class ContactSelectionListFragment extends LoggingFragment { if (findByCallback != null && FeatureFlags.usernames()) { builder.arbitrary(ContactSelectionListAdapter.ArbitraryRepository.ArbitraryRow.FIND_BY_USERNAME.getCode()); + builder.arbitrary(ContactSelectionListAdapter.ArbitraryRepository.ArbitraryRow.FIND_BY_PHONE_NUMBER.getCode()); } - builder.arbitrary(ContactSelectionListAdapter.ArbitraryRepository.ArbitraryRow.FIND_BY_PHONE_NUMBER.getCode()); - if (transportType != null) { if (!hasQuery && includeRecents) { builder.addSection(new ContactSearchConfiguration.Section.Recents(