We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae965ae commit e48d3c3Copy full SHA for e48d3c3
src/main/java/org/radarbase/hdfs/config/NonEmptyValidator.kt
@@ -21,7 +21,7 @@ import com.beust.jcommander.ParameterException
21
22
class NonEmptyValidator : IParameterValidator {
23
override fun validate(name: String, value: String?) {
24
- if (value?.isEmpty() == true) {
+ if (value.isNullOrEmpty()) {
25
throw ParameterException("Parameter " + name + " should be supplied. "
26
+ "It cannot be empty or null. (found " + value + ")."
27
+ "Please run with --help or -h for more information.")
0 commit comments