mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-19 21:17:59 +00:00
Removing null pointer on URI object
This commit is contained in:
parent
4eafb655ba
commit
3197f4a818
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user