Commit 593e8cea authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed problem when no locale was present in the config file.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1054 b35dd754-fafc-0310-a699-88a17e54d16e
parent d89d474d
......@@ -78,7 +78,14 @@ public class JiveGlobals {
public static Locale getLocale() {
if (locale == null) {
if (xmlProperties != null) {
String [] localeArray = ((String)xmlProperties.getProperty("locale")).split("_");
String [] localeArray;
String localeProperty = (String) xmlProperties.getProperty("locale");
if (localeProperty != null) {
localeArray = localeProperty.split("_");
}
else {
localeArray = new String[] {"", ""};
}
String language = localeArray[0];
if (language == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment