mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 03:25:19 +01:00
Fix NPE in ConfigurateConfigAdapter#getStringList (#2399)
This commit is contained in:
parent
f893b1c632
commit
bfaa543ecd
@ -88,7 +88,7 @@ public abstract class ConfigurateConfigAdapter implements ConfigurationAdapter {
|
|||||||
@Override
|
@Override
|
||||||
public List<String> getStringList(String path, List<String> def) {
|
public List<String> getStringList(String path, List<String> def) {
|
||||||
ConfigurationNode node = resolvePath(path);
|
ConfigurationNode node = resolvePath(path);
|
||||||
if (node.isVirtual()) {
|
if (node.isVirtual() || !node.hasListChildren()) {
|
||||||
return def;
|
return def;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ public abstract class ConfigurateConfigAdapter implements ConfigurationAdapter {
|
|||||||
@Override
|
@Override
|
||||||
public List<String> getKeys(String path, List<String> def) {
|
public List<String> getKeys(String path, List<String> def) {
|
||||||
ConfigurationNode node = resolvePath(path);
|
ConfigurationNode node = resolvePath(path);
|
||||||
if (node.isVirtual()) {
|
if (node.isVirtual() || !node.hasMapChildren()) {
|
||||||
return def;
|
return def;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user