From 130fdfcbae0c71e8918dc208f7ddbdd2acbb86b0 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 24 Apr 2022 20:07:56 +0200 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/Helper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Helper.java b/app/src/main/java/eu/faircode/email/Helper.java index 6835facb61..9f061c2577 100644 --- a/app/src/main/java/eu/faircode/email/Helper.java +++ b/app/src/main/java/eu/faircode/email/Helper.java @@ -835,6 +835,9 @@ public class Helper { } static void customTabsWarmup(Context context) { + if (context == null) + return; + try { CustomTabsClient.bindCustomTabsService(context, "com.android.chrome", new CustomTabsServiceConnection() { @Override