Skip to content

Commit e48d3c3

Browse files
committed
PR fix
1 parent ae965ae commit e48d3c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/radarbase/hdfs/config/NonEmptyValidator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import com.beust.jcommander.ParameterException
2121

2222
class NonEmptyValidator : IParameterValidator {
2323
override fun validate(name: String, value: String?) {
24-
if (value?.isEmpty() == true) {
24+
if (value.isNullOrEmpty()) {
2525
throw ParameterException("Parameter " + name + " should be supplied. "
2626
+ "It cannot be empty or null. (found " + value + ")."
2727
+ "Please run with --help or -h for more information.")

0 commit comments

Comments
 (0)