Skip to content

Commit

Permalink
Merge pull request #58 from raboof/allow-empty-license-name
Browse files Browse the repository at this point in the history
fix: allow empty license name in CycloneDX XML
  • Loading branch information
anthonyharrison authored Oct 31, 2024
2 parents b7390b1 + 181549e commit 7901844
Show file tree
Hide file tree
Showing 3 changed files with 2,595 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib4sbom/cyclonedx/cyclonedx_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ def parse_document_xml(self):

def _xml_component(self, item, element):
data = item.find(self.schema + element)
if data is not None:
if data is not None and data.text is not None:
return data.text.strip()
return ""

Expand Down
Loading

0 comments on commit 7901844

Please sign in to comment.