mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
DeepL: fixed NPE
This commit is contained in:
@@ -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/";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user