mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-03 20:41:37 +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
|
@Override
|
||||||
public Map<String, Object> getListGroupConfig() {
|
public Map<String, Object> getListGroupConfig() {
|
||||||
final CommentedConfigurationNode node = config.getSection("list");
|
final CommentedConfigurationNode node = config.getSection("list");
|
||||||
if (node.isMap()) {
|
if (node != null && node.isMap()) {
|
||||||
final Map<String, Object> values = ConfigurateUtil.getRawMap(node);
|
final Map<String, Object> values = ConfigurateUtil.getRawMap(node);
|
||||||
if (!values.isEmpty()) {
|
if (!values.isEmpty()) {
|
||||||
return values;
|
return values;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue