From 60c7fb0056a2bf493c16baf36a1d880980cabe82 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Wed, 20 Feb 2019 17:20:12 -0800 Subject: [PATCH] Fix possible NPE. --- .../securesms/conversation/ConversationFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/conversation/ConversationFragment.java b/src/org/thoughtcrime/securesms/conversation/ConversationFragment.java index f35808bba1..43a7fbc76d 100644 --- a/src/org/thoughtcrime/securesms/conversation/ConversationFragment.java +++ b/src/org/thoughtcrime/securesms/conversation/ConversationFragment.java @@ -745,7 +745,9 @@ public class ConversationFragment extends Fragment } public void onSearchQueryUpdated(@Nullable String query) { - getListAdapter().onSearchQueryUpdated(query); + if (getListAdapter() != null) { + getListAdapter().onSearchQueryUpdated(query); + } } public void jumpToMessage(@NonNull Address author, long timestamp, @Nullable Runnable onMessageNotFound) {