Locale NPE

This commit is contained in:
nossr50 2019-02-26 20:02:02 -08:00
parent 562066311b
commit 53f06832f1

View File

@ -454,7 +454,10 @@ public class MainConfig extends ConfigValidated {
}
public String getLocale() {
return getStringValue(GENERAL, LOCALE, EN_US);
if(hasNode(GENERAL, LOCALE))
return getStringValue(GENERAL, LOCALE);
else
return "en_US";
}
public boolean getMOTDEnabled() {