mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-22 16:39:48 +00:00
Fix NPE in ConfigurateConfigAdapter#getStringList (#2399)
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -88,7 +88,7 @@ public abstract class ConfigurateConfigAdapter implements ConfigurationAdapter {
|
||||
@Override
|
||||
public List<String> getStringList(String path, List<String> def) {
|
||||
ConfigurationNode node = resolvePath(path);
|
||||
if (node.isVirtual()) {
|
||||
if (node.isVirtual() || !node.hasListChildren()) {
|
||||
return def;
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ public abstract class ConfigurateConfigAdapter implements ConfigurationAdapter {
|
||||
@Override
|
||||
public List<String> getKeys(String path, List<String> def) {
|
||||
ConfigurationNode node = resolvePath(path);
|
||||
if (node.isVirtual()) {
|
||||
if (node.isVirtual() || !node.hasMapChildren()) {
|
||||
return def;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user