From f89597b9369e3a4af9ec3547e1d8f186b2f62e64 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 24 Jan 2020 11:26:11 +0100 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java b/app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java index 71f5f29c1f..2ce73e4fac 100644 --- a/app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java +++ b/app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java @@ -180,6 +180,9 @@ public class ActivityWidgetUnified extends ActivityBase { @Override protected void onExecuted(Bundle args, List accounts) { + if (accounts == null) + accounts = new ArrayList<>(); + EntityAccount all = new EntityAccount(); all.id = -1L; all.name = getString(R.string.title_widget_account_all);