Skip to content

Commit 7ca2cd9

Browse files
committed
solver: skip sbom post processor if result is nil
Signed-off-by: Justin Chadwell <[email protected]>
1 parent dd651bd commit 7ca2cd9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

solver/llbsolver/proc/sbom.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ func SBOMProcessor(scannerRef string, useCache bool) llbsolver.Processor {
3838
if !ok {
3939
return nil, errors.Errorf("could not find ref %s", p.ID)
4040
}
41+
if ref == nil {
42+
continue
43+
}
44+
4145
defop, err := llb.NewDefinitionOp(ref.Definition())
4246
if err != nil {
4347
return nil, err

0 commit comments

Comments
 (0)