Skip to content

Commit 1734702

Browse files
committed
Don't add blank comments to created relationships
This messes up compares. Signed-off-by: Gary O'Neall <[email protected]>
1 parent 72f64cc commit 1734702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/spdx/library/model/RelatedElementCollection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public boolean add(SpdxElement e) {
170170
return false;
171171
}
172172
try {
173-
Relationship relationship = owningElement.createRelationship(e, relationshipTypeFilter, "");
173+
Relationship relationship = owningElement.createRelationship(e, relationshipTypeFilter, null);
174174
return owningElement.addRelationship(relationship);
175175
} catch (InvalidSPDXAnalysisException e1) {
176176
logger.error("Error adding relationship",e1);

0 commit comments

Comments
 (0)