Skip to content

Commit

Permalink
[backend] Fix export exercise (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomuDeuxfois authored Jan 2, 2025
1 parent f77b2e4 commit e6b5450
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,11 @@ public void exerciseExport(
inject
.getInjectorContract()
.ifPresent(
injectorContract -> exerciseTags.addAll(injectorContract.getPayload().getTags()));
injectorContract -> {
if (injectorContract.getPayload() != null) {
exerciseTags.addAll(injectorContract.getPayload().getTags());
}
});
exerciseTags.addAll(inject.getTags());
});
exerciseTags.addAll(injects.stream().flatMap(inject -> inject.getTags().stream()).toList());
Expand Down

0 comments on commit e6b5450

Please sign in to comment.