We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ddb211 commit 34175bdCopy full SHA for 34175bd
1 file changed
plugins/reporters/spdx/src/main/kotlin/SpdxDocumentModelMapper.kt
@@ -71,10 +71,10 @@ internal object SpdxDocumentModelMapper {
71
relatedSpdxElement = toOrtId.toSpdxId()
72
)
73
74
- linkageTypesForDependencyRelationships.getValue(fromOrtId to toOrtId)
75
- .mapTo(mutableSetOf()) { it.toSpdxRelationshipType() }
76
- .sorted()
77
- .forEach { relationshipType ->
+ linkageTypesForDependencyRelationships[fromOrtId to toOrtId]
+ ?.mapTo(mutableSetOf()) { it.toSpdxRelationshipType() }
+ ?.sorted()
+ ?.forEach { relationshipType ->
78
relationships += SpdxRelationship(
79
spdxElementId = fromSpdxId,
80
relationshipType = relationshipType,
0 commit comments