Skip to content

Commit a362ed7

Browse files
authored
support null defaults (#1285)
1 parent 6c2861a commit a362ed7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common-tools/clas-utils/src/main/java/org/jlab/utils/options/OptionValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ public boolean parse(List<String> arguments){
5555
}
5656

5757
public boolean isDefault() {
58-
return this.optionValue.equals(this.optionDefault);
58+
return this.optionValue==null || this.optionValue.equals(this.optionDefault);
5959
}
6060
}

0 commit comments

Comments
 (0)