Fix NPE for list group (#4230)

This commit is contained in:
Josh Roy 2021-06-12 17:34:58 -04:00 committed by GitHub
parent 65b80200bd
commit c43af5d3d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;