fix NPE while getting activity (Christian Schneppe)

This commit is contained in:
12aw 2022-05-23 19:09:58 +02:00
parent e2d7d88550
commit b8e5405f47

View file

@ -999,8 +999,10 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
this.binding.textinput.setHint(R.string.you_are_not_participating);
} else {
this.binding.textInputHint.setVisibility(View.GONE);
this.binding.textinput.setHint(UIHelper.getMessageHint(getActivity(), conversation));
getActivity().invalidateOptionsMenu();
if (getActivity() != null) {
this.binding.textinput.setHint(UIHelper.getMessageHint(getActivity(), conversation));
getActivity().invalidateOptionsMenu();
}
}
}