Skip to content

Commit

Permalink
fix(core): prevent npe on subflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Nov 29, 2023
1 parent 1e31af6 commit 701dd17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ protected boolean isFlowTaskChild(Flow parent, Flow child) {
.filter(t -> t instanceof ExecutableTask)
.map(t -> (ExecutableTask<?>) t)
.anyMatch(t ->
t.subflowId().namespace().equals(child.getNamespace()) && t.subflowId().flowId().equals(child.getId())
t.subflowId() != null && t.subflowId().namespace().equals(child.getNamespace()) && t.subflowId().flowId().equals(child.getId())
);
} catch (Exception e) {
log.warn("Failed to detect flow task on namespace:'" + parent.getNamespace() + "', flowId:'" + parent.getId() + "'", e);
Expand Down

0 comments on commit 701dd17

Please sign in to comment.