Skip to content

Commit

Permalink
fix: make null safe
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 committed Aug 22, 2023
1 parent ee22be4 commit 236c127
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ public void run() {
public static Map<String, List<Provenance>> getFingerprints(FromSbomOptions options) {
Bom14Schema sbom = options.getInput();
Map<String, List<Provenance>> fingerprints = new HashMap<>();
processExternalJars(options.getExternalJars().toFile(), fingerprints, options.getAlgorithm());
if (options.getExternalJars() != null) {
processExternalJars(options.getExternalJars().toFile(), fingerprints, options.getAlgorithm());
}

for (Component component : sbom.getComponents()) {
try {
Expand Down

0 comments on commit 236c127

Please sign in to comment.