Commit 13705a1
committed
fix(spdx-reporter): Do not try to add empty license texts
The `SpdxExtractedLicenseInfo` class requires that the license text is
not empty. However, in some situations it can be that a license text
from a `LicenseFactProvider` is empty, for example, if a ScanCode
license text contains only YAML front matter, or if a custom license
text file is empty. To not fail the SPDX reporter in this situation,
simply check if a license text is empty before creating the
`SpdxExtractedLicenseInfo`.
Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.com>1 parent 2155566 commit 13705a1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
0 commit comments