mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-04-06 13:30:43 +08:00
Fix null check for I18n error logging
This commit is contained in:
parent
2b993d58cf
commit
6fb500d9fb
@ -87,7 +87,7 @@ public class I18n implements net.ess3.api.II18n {
|
||||
return localeBundle.getString(string);
|
||||
}
|
||||
} catch (final MissingResourceException ex) {
|
||||
if (ess == null || ess.getSettings().isDebug()) {
|
||||
if (ess != null && ess.getSettings().isDebug()) {
|
||||
ess.getLogger().log(Level.WARNING, String.format("Missing translation key \"%s\" in translation file %s", ex.getKey(), localeBundle.getLocale().toString()), ex);
|
||||
}
|
||||
return defaultBundle.getString(string);
|
||||
|
Loading…
x
Reference in New Issue
Block a user