Merge pull request #1621 from stianst/master

KEYCLOAK-1854
This commit is contained in:
Stian Thorgersen 2015-09-17 08:36:08 +02:00
commit dc327ddddb

View file

@ -46,7 +46,9 @@ public class SystemInfoRepresentation {
rep.userName = System.getProperty("user.name");
rep.userDir = System.getProperty("user.dir");
rep.userTimezone = System.getProperty("user.timezone");
rep.userLocale = (new Locale(System.getProperty("user.country"), System.getProperty("user.language")).toString());
if (System.getProperty("user.country") != null && System.getProperty("user.language") != null) {
rep.userLocale = (new Locale(System.getProperty("user.country"), System.getProperty("user.language")).toString());
}
return rep;
}