mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
Fix NPE for list group (#4230)
This commit is contained in:
parent
65b80200bd
commit
c43af5d3d9
1 changed files with 1 additions and 1 deletions
|
@ -602,7 +602,7 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
@Override
|
||||
public Map<String, Object> getListGroupConfig() {
|
||||
final CommentedConfigurationNode node = config.getSection("list");
|
||||
if (node.isMap()) {
|
||||
if (node != null && node.isMap()) {
|
||||
final Map<String, Object> values = ConfigurateUtil.getRawMap(node);
|
||||
if (!values.isEmpty()) {
|
||||
return values;
|
||||
|
|
Loading…
Reference in a new issue