Skip to content

Commit

Permalink
prevent NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
kwin committed Feb 13, 2024
1 parent 8280b80 commit 8b6e3d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ public void validateExternalProfiles(
.collect(Collectors.toList())) {
for (Repository repository : profile.getRepositories()) {
Optional<Repository> clashingPomRepository = m.getRepositories().stream()
.filter(r -> r.getId().equals(repository.getId()))
.filter(r -> Objects.equals(r.getId(), repository.getId()))
.findFirst();
if (clashingPomRepository.isPresent()) {
addViolation(
Expand Down

0 comments on commit 8b6e3d1

Please sign in to comment.