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 82f67fa commit cdc9759Copy full SHA for cdc9759
opengrok-indexer/src/main/java/org/opengrok/indexer/util/OptionParser.java
@@ -431,6 +431,11 @@ public Option on(Object... args) {
431
// to which the parser will take and convert.
432
} else if (arg instanceof Class) {
433
opt.setValueType((Class<?>) arg);
434
+ } else if (arg == null) {
435
+ throw new IllegalArgumentException("arg is null");
436
+ } else {
437
+ throw new IllegalArgumentException("Invalid arg: " +
438
+ arg.getClass().getSimpleName() + " " + arg);
439
}
440
441
0 commit comments