mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 10:17:29 +00:00
fixed a NullPointerException in the config system
This commit is contained in:
1 file changed
+5
-1
+5
-1
@@ -53,7 +53,11 @@ public class DoubleListConfigField extends AListConfigField<double[]> {
|
||||
property.setDefaultValues(defaultValue);
|
||||
property.setMinValue(min);
|
||||
property.setMaxValue(max);
|
||||
if (!property.isDoubleList()) {
|
||||
try {
|
||||
if (!property.isDoubleList()) {
|
||||
setToDefault();
|
||||
}
|
||||
} catch (NullPointerException ignored) {
|
||||
setToDefault();
|
||||
}
|
||||
property.comment += "\n[range: " + min + " ~ " + max + ", default: " + Arrays.toString(defaultValue) + "]";
|
||||
|
||||
Reference in new issue
Block a user