Skip to content

Commit

Permalink
fix: warn if root component is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 committed Aug 28, 2023
1 parent bc5ed39 commit c1c6e7d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ public Path getOutput() {

private void processRootComponent(Bom14Schema sbom) throws IOException, InterruptedException {
Component rootComponent = sbom.getMetadata().getComponent();
if (rootComponent == null) {
LOGGER.warn("Root component is not present.");
return;
}
File jarFile = JarDownloader.getMavenJarFile(
rootComponent.getGroup(), rootComponent.getName(), rootComponent.getVersion());
goInsideJarAndUpdateFingerprints(
Expand Down

0 comments on commit c1c6e7d

Please sign in to comment.