Fix possible NPE.

This commit is contained in:
Greyson Parrelli 2019-02-20 17:20:12 -08:00
parent fa6da1902f
commit 60c7fb0056

View File

@ -745,8 +745,10 @@ public class ConversationFragment extends Fragment
} }
public void onSearchQueryUpdated(@Nullable String query) { public void onSearchQueryUpdated(@Nullable String query) {
if (getListAdapter() != null) {
getListAdapter().onSearchQueryUpdated(query); getListAdapter().onSearchQueryUpdated(query);
} }
}
public void jumpToMessage(@NonNull Address author, long timestamp, @Nullable Runnable onMessageNotFound) { public void jumpToMessage(@NonNull Address author, long timestamp, @Nullable Runnable onMessageNotFound) {
SimpleTask.run(getLifecycle(), () -> { SimpleTask.run(getLifecycle(), () -> {