Skip to content

Commit ead1fd5

Browse files
dwalluckgoneall
authored andcommitted
Call SpdxModelFactory::init when constructing LicenseCreatorAgent
1 parent 9343134 commit ead1fd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/spdx/storage/listedlicense/LicenseCreatorAgent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.spdx.core.SpdxInvalidIdException;
2828
import org.spdx.core.SpdxInvalidTypeException;
2929
import org.spdx.core.TypedValue;
30+
import org.spdx.library.SpdxModelFactory;
3031
import org.spdx.library.model.v3_0_1.SpdxConstantsV3;
3132
import org.spdx.library.model.v3_0_1.core.Agent;
3233
import org.spdx.library.model.v3_0_1.core.CreationInfo;
@@ -51,6 +52,7 @@ public class LicenseCreatorAgent {
5152
private final TypedValue creationInfoTV;
5253

5354
public LicenseCreatorAgent(String licenseListVersion) throws SpdxInvalidIdException, SpdxInvalidTypeException, ModelRegistryException {
55+
SpdxModelFactory.init();
5456
this.objectUri = OBJECT_URI_PREFIX + licenseListVersion.replace('.','_');
5557
this.typedValue = new TypedValue(objectUri, SpdxConstantsV3.CORE_AGENT, SpdxConstantsV3.MODEL_SPEC_VERSION);
5658
this.creationInfoTV = new TypedValue(LicenseCreationInfo.CREATION_INFO_URI, SpdxConstantsV3.CORE_CREATION_INFO, SpdxConstantsV3.MODEL_SPEC_VERSION);

0 commit comments

Comments
 (0)