Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ssenko committed Jun 6, 2024
1 parent 2b50c8b commit fdc44e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public Optional<Integer> additionalContextValue(BaseLepContext lepContext, LepEn
LepBaseKey lepBaseKey = lepMethod.getLepBaseKey();
if ("tasks".equals(lepBaseKey.getGroup()) && "Task".equals(lepBaseKey.getBaseKey())) {
SagaEvent sagaEvent = lepMethod.getParameter("sagaEvent", SagaEvent.class);
return Optional.ofNullable(sagaEvent.getIteration());
return Optional.ofNullable(sagaEvent).map(SagaEvent::getIteration);
} else {
return Optional.empty();
}
Expand Down

0 comments on commit fdc44e4

Please sign in to comment.