Skip to content

Commit

Permalink
fix(core): flow validation can NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu authored and Skraye committed Sep 5, 2024
1 parent 81d54ef commit 87a667d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/io/kestra/core/models/flows/Flow.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ private Stream<Task> allTasksWithChilds(Task task) {
public List<String> allTriggerIds() {
return this.triggers != null ? this.triggers.stream()
.map(AbstractTrigger::getId)
.filter(id -> id != null) // this can happen when validation a flow under creation
.collect(Collectors.toList()) : Collections.emptyList();
}

Expand Down

0 comments on commit 87a667d

Please sign in to comment.