mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
panic parsing cyclonedx (#892)
This commit is contained in:
parent
b9b3ccecf9
commit
ee0a1d172c
@ -47,8 +47,10 @@ func hasMetadata(p pkg.Package) bool {
|
||||
|
||||
func decodeComponent(c *cyclonedx.Component) *pkg.Package {
|
||||
values := map[string]string{}
|
||||
for _, p := range *c.Properties {
|
||||
values[p.Name] = p.Value
|
||||
if c.Properties != nil {
|
||||
for _, p := range *c.Properties {
|
||||
values[p.Name] = p.Value
|
||||
}
|
||||
}
|
||||
|
||||
p := &pkg.Package{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user