From 88d9b304466e41101710eb21ede91f9792529ce1 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 4 Jun 2022 18:06:20 +0200 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index d953a55400..ffdc80a9d8 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -1400,6 +1400,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. @Override public void onClick(View v) { MoreResult result = (MoreResult) cardMore.getTag(); + if (result == null) + return; + if (result.accounts.size() == 1) { for (EntityAccount account : result.accounts.keySet()) onActionMoveSelectionAccount(account.id, false, result.folders);