diff --git a/lib/src/main/java/org/asamk/signal/manager/util/Utils.java b/lib/src/main/java/org/asamk/signal/manager/util/Utils.java index 806a3bb3..60e0c3a4 100644 --- a/lib/src/main/java/org/asamk/signal/manager/util/Utils.java +++ b/lib/src/main/java/org/asamk/signal/manager/util/Utils.java @@ -76,6 +76,9 @@ public class Utils { public static Locale getDefaultLocale() { final var locale = Locale.getDefault(); + if (locale == null) { + return null; + } try { Locale.LanguageRange.parse(locale.getLanguage() + "-" + locale.getCountry()); } catch (IllegalArgumentException e) {