diff --git a/sbom/internal/formats/common/property_encoder.go b/sbom/internal/formats/common/property_encoder.go index ac64c8cd..2cdd7c30 100644 --- a/sbom/internal/formats/common/property_encoder.go +++ b/sbom/internal/formats/common/property_encoder.go @@ -158,7 +158,7 @@ func Decode(typ reflect.Type, values map[string]string, prefix string, fn FieldN isSlice := false if typ.Kind() == reflect.Slice { - typ = reflect.PtrTo(typ) + typ = reflect.PointerTo(typ) isSlice = true }