Removing null pointer on URI object

This commit is contained in:
Cyrus 2024-01-08 14:44:55 -05:00
parent 4eafb655ba
commit 3197f4a818

View File

@ -96,7 +96,11 @@ public class ComponentIdentifierV2 extends ComponentIdentifier {
this.componentClass = componentClass;
// additional optional component identifiers
this.certificateIdentifier = certificateIdentifier;
this.componentPlatformUri = new URIReference(componentPlatformUri.getSequence());
if (componentPlatformUri != null) {
this.componentPlatformUri = new URIReference(componentPlatformUri.getSequence());
} else {
this.componentPlatformUri = new URIReference();
}
this.attributeStatus = attributeStatus;
}