Prevent crash

This commit is contained in:
M66B 2022-07-23 16:52:18 +02:00
parent f3558b28aa
commit 21bf53522d
1 changed files with 4 additions and 1 deletions

View File

@ -3328,7 +3328,10 @@ public class FragmentMessages extends FragmentBase
}
private void onMenuReply(TupleMessageEx message, String action, CharSequence selected) {
Intent reply = new Intent(getContext(), ActivityCompose.class)
final Context context = getContext();
if (context == null)
return;
Intent reply = new Intent(context, ActivityCompose.class)
.putExtra("action", action)
.putExtra("reference", message.id)
.putExtra("selected", selected);