Skip to content

Commit 71e5b83

Browse files
committed
fix lic logic skip
1 parent bfd45aa commit 71e5b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/results/conversion/simplejsonparser/simplejsonparser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (sjc *CmdResultsSimpleJsonConverter) ParseSbomLicenses(components []cyclone
101101
}
102102
compName, compVersion, compType := techutils.SplitPackageURL(component.PackageURL)
103103
for _, license := range *component.Licenses {
104-
if license.License == nil && license.License.Name == "" {
104+
if license.License == nil || license.License.Name == "" {
105105
// No license name found, continue to the next one
106106
continue
107107
}

0 commit comments

Comments
 (0)