Skip to content

Commit

Permalink
Fix possible crash in conversation fragment startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Feb 17, 2023
1 parent fde0726 commit 05d232b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4045,7 +4045,9 @@ public void onMessageWithErrorClicked(@NonNull MessageRecord messageRecord) {

@Override
public void onFirstRender() {
requireActivity().supportStartPostponedEnterTransition();
if (getActivity() != null) {
requireActivity().supportStartPostponedEnterTransition();
}
voiceNoteMediaController.finishPostpone();
}

Expand Down

0 comments on commit 05d232b

Please sign in to comment.