Skip to content

Commit fe49dd1

Browse files
committed
enum fix in configs
1 parent 6cf190e commit fe49dd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/falsepattern/lib/config/ConfigurationManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private static void processConfig(Class<?> configClass) throws IllegalAccessExce
118118
.map(ConfigurationManager::extractValue)
119119
.orElse(field.get(null));
120120
val possibleValues = enumValues.stream().map(Enum::name).toArray(String[]::new);
121-
field.set(null, fieldClass.getDeclaredField(rawConfig.getString(name, category, defaultValue.name(), comment, possibleValues, langKey)));
121+
field.set(null, fieldClass.getDeclaredField(rawConfig.getString(name, category, defaultValue.name(), comment, possibleValues, langKey)).get(null));
122122
} else {
123123
throw new ConfigException("Illegal config field: " + field.getName() + " in " + configClass.getName() + ": Unsupported type " + fieldClass.getName() + "! Did you forget an @Ignore annotation?");
124124
}

0 commit comments

Comments
 (0)