Skip to content

Commit 05bff6e

Browse files
Input arguments optional
1 parent 7b65b76 commit 05bff6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/main/java/dev/vml/es/acm/core/code/Arguments.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ public <T> T value(String name) {
7575
}
7676

7777
public void setValues(ArgumentValues arguments) {
78+
if (arguments == null) {
79+
return; // input arguments may be skipped then default values will be used
80+
}
7881
arguments.forEach((name, value) -> {
7982
Argument<?> argument = get(name);
8083
setValue(argument, value);

0 commit comments

Comments
 (0)