Skip to content

Commit a10ffa9

Browse files
committed
support null defaults
1 parent 6c2861a commit a10ffa9

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)