diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/UserCountryNotSetValidatorLocaleTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/UserCountryNotSetValidatorLocaleTest.java index 47206adc1caed..7eead10336d8b 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/UserCountryNotSetValidatorLocaleTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/UserCountryNotSetValidatorLocaleTest.java @@ -30,7 +30,9 @@ public void run() { }).setAfterAllCustomizer(new Runnable() { @Override public void run() { - System.setProperty("user.country", userCountry); + if (userCountry != null) { + System.setProperty("user.country", userCountry); + } System.setProperty("user.language", userLanguage); } });