Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,14 @@ public WorkflowModel output() {

@Override
public <T> T outputAs(Class<T> clazz) {
return output
.as(clazz)
.orElseThrow(
() ->
new IllegalArgumentException(
"Output " + output + " cannot be converted to class " + clazz));
return output != null
? output
.as(clazz)
.orElseThrow(
() ->
new IllegalArgumentException(
"Output " + output + " cannot be converted to class " + clazz))
: null;
}

public void status(WorkflowStatus state) {
Expand Down