From 44317fa0b91357d5e6864e4509cb9e7f6a3c42c1 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 12 Feb 2022 07:53:33 +0100 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 36314a33a7..d9aaa1dcbb 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -4898,7 +4898,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. private void onMenuDeleteSearch() { Bundle args = new Bundle(); - args.putLong("id", criteria.id); + args.putLong("id", criteria == null ? -1 : criteria.id); new SimpleTask() { @Override