IDEMPIERE-4649 NPE when running Change base language with a fake language (as instructed) (#529)
This commit is contained in:
parent
efc3d98313
commit
0e366c9929
|
@ -141,7 +141,8 @@ public class Language implements Serializable
|
|||
if (dblang != null) {
|
||||
if (!( language.equals(dblang.getLanguageISO())
|
||||
&& country.equals(dblang.getCountryCode())
|
||||
)
|
||||
) && dblang.getLanguageISO() != null
|
||||
&& dblang.getCountryCode() != null
|
||||
) {
|
||||
locale = new Locale(dblang.getLanguageISO(), dblang.getCountryCode());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue