This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch 2_1_X in repository https://gitbox.apache.org/repos/asf/syncope.git
commit 5424210cfc4f255d2aac11d61095b5bebe88c4e5 Author: Francesco Chicchiriccò <[email protected]> AuthorDate: Mon Sep 14 15:51:11 2020 +0200 [SYNCOPE-1590] Fix --- .../lib/src/main/java/org/apache/syncope/common/lib/to/SchemaTO.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/to/SchemaTO.java b/common/lib/src/main/java/org/apache/syncope/common/lib/to/SchemaTO.java index 5ef7a81..f9f46e9 100644 --- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/SchemaTO.java +++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/SchemaTO.java @@ -59,8 +59,8 @@ public abstract class SchemaTO implements EntityTO { if (splitted.length > 1) { country = splitted[1]; } - if (splitted.length >= 2) { - country = splitted[2]; + if (splitted.length > 2) { + variant = splitted[2]; } return new Locale(language, country, variant);
