diff --git a/app/src/main/java/eu/faircode/email/DeepL.java b/app/src/main/java/eu/faircode/email/DeepL.java index bfd3223a61..b78cead617 100644 --- a/app/src/main/java/eu/faircode/email/DeepL.java +++ b/app/src/main/java/eu/faircode/email/DeepL.java @@ -347,7 +347,7 @@ public class DeepL { } private static String getBaseUri(String key) { - String domain = (key.endsWith(":fx") ? "api-free.deepl.com" : "api.deepl.com"); + String domain = (key != null && key.endsWith(":fx") ? "api-free.deepl.com" : "api.deepl.com"); return "https://" + domain + "/v2/"; }