Skip to content

Commit

Permalink
Bug: added check if repository is null in CucumberJpaReset
Browse files Browse the repository at this point in the history
Close #10097
  • Loading branch information
richersoon committed Jul 14, 2024
1 parent 7e1cc73 commit 117c8d0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ public class CucumberJpaReset {
@Before
@Transactional
public void wipeData() {
if (repositories == null) {
return;
}

repositories.forEach(JpaRepository::deleteAllInBatch);
}
}

0 comments on commit 117c8d0

Please sign in to comment.