Skip to content

Commit 7657886

Browse files
committedJun 16, 2020
Check for null values, similar to c5fa52d
1 parent 61b5f6b commit 7657886

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/main/java/edu/ucsd/msjava/params/FloatParameter.java

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ public String parse(String value) {
1313
try {
1414
super.value = Float.valueOf(value);
1515

16+
if (minValue == null)
17+
minValue = Float.NEGATIVE_INFINITY;
18+
19+
if (maxValue == null)
20+
maxValue = Float.POSITIVE_INFINITY;
1621

1722
String range = getValidRange();
1823
if (this.value < minValue || this.value > maxValue ||

0 commit comments

Comments
 (0)
Please sign in to comment.