mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-26 05:29:25 +01:00
Fix NPE for list group (#4230)
This commit is contained in:
parent
65b80200bd
commit
c43af5d3d9
@ -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 New Issue
Block a user