Skip to content

Commit 70b5f65

Browse files
committed
fixed a NullPointerException in the config system
1 parent cd50b56 commit 70b5f65

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/falsepattern/lib/internal/impl/config/fields/DoubleListConfigField.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ public DoubleListConfigField(Field field, Configuration configuration, String ca
5353
property.setDefaultValues(defaultValue);
5454
property.setMinValue(min);
5555
property.setMaxValue(max);
56-
if (!property.isDoubleList()) {
56+
try {
57+
if (!property.isDoubleList()) {
58+
setToDefault();
59+
}
60+
} catch (NullPointerException ignored) {
5761
setToDefault();
5862
}
5963
property.comment += "\n[range: " + min + " ~ " + max + ", default: " + Arrays.toString(defaultValue) + "]";

0 commit comments

Comments
 (0)