Skip to content

Commit

Permalink
[MPIR-448] [REGRESSION] DependenciesRenderer chokes on invalid scope …
Browse files Browse the repository at this point in the history
…with a NPE
  • Loading branch information
michael-o committed May 31, 2023
1 parent 9c25752 commit d8f8086
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/it/full-pom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@
<version>1.7.36</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-kqueue</artifactId>
<version>4.1.91.Final</version>
<scope>bogus</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,11 @@ private void renderSectionDependencyFileDetails() {
+ " and won't be listed in dependency files details.");
continue;
}
if (SummaryTableRowOrder.fromScope(artifact.getScope()) == null) {
log.warn("Artifact " + artifact.getId() + " has invalid scope"
+ " and won't be listed in dependency files details.");
continue;
}

File artifactFile = dependencies.getFile(artifact);

Expand Down

0 comments on commit d8f8086

Please sign in to comment.