diff --git a/classfile-fingerprint/src/main/java/io/github/algomaster99/FromSbom.java b/classfile-fingerprint/src/main/java/io/github/algomaster99/FromSbom.java index a4a0a1b2..5cdc5278 100644 --- a/classfile-fingerprint/src/main/java/io/github/algomaster99/FromSbom.java +++ b/classfile-fingerprint/src/main/java/io/github/algomaster99/FromSbom.java @@ -74,7 +74,9 @@ public void run() { public static Map> getFingerprints(FromSbomOptions options) { Bom14Schema sbom = options.getInput(); Map> 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 {