Skip to content

Commit

Permalink
Added minor fix for potential issue with the Gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed May 22, 2024
1 parent ddd0837 commit 04fc06e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static ScenarioOutcome singleScenarioOutlineFrom(String userStoryName,
private static List<TestTag> getTestTags(RequirementsService requirements, TestOutcome testOutcome) {
Optional<Requirement> requirement = requirements.getParentRequirementFor(testOutcome);
List<TestTag> scenarioTags = new ArrayList<>();
if (requirement.isPresent() && requirement.get().getScenarioTags() != null) {
if (requirement != null && requirement.isPresent() && requirement.get().getScenarioTags() != null) {
if (requirement.get().getScenarioTags().get(testOutcome.getName()) != null) {
scenarioTags.addAll(requirement.get().getScenarioTags().get(testOutcome.getName()));
}
Expand Down

0 comments on commit 04fc06e

Please sign in to comment.