Skip to content

Commit

Permalink
fix requirement definition in YAML Mode (winery#643)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Harzenetter <[email protected]>
  • Loading branch information
lharzenetter authored Jan 14, 2022
1 parent 5d088fc commit de2c8c7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected ReqDefOrCapDef createBasicReqOrCapDef(RequirementOrCapabilityDefinitio
if (this instanceof CapabilityDefinitionsResource) {
def = (ReqDefOrCapDef) new TCapabilityDefinition.Builder(
postData.name,
QName.valueOf(postData.type)
postData.type != null ? QName.valueOf(postData.type) : null
)
.setUpperBound(ubound)
.setLowerBound(lbound)
Expand All @@ -116,7 +116,7 @@ protected ReqDefOrCapDef createBasicReqOrCapDef(RequirementOrCapabilityDefinitio
assert (this instanceof RequirementDefinitionsResource);
def = (ReqDefOrCapDef) new TRequirementDefinition.Builder(
postData.name,
QName.valueOf(postData.type)
postData.type != null ? QName.valueOf(postData.type) : null
)
.setUpperBound(ubound)
.setLowerBound(lbound)
Expand Down

0 comments on commit de2c8c7

Please sign in to comment.